On Wed, Nov 02, 2005 at 02:38:37PM +0100, Jakub Bogusz wrote:
> (updated)
> > pdksh$ echo '\'
> > \
> > pdksh$ echo '\\'
of course, it should be:
pdksh$ /bin/echo '\\'
> > \\
>
> And it conforms to POSIX/SUSv2 specs.
I was not sure, that is why I have reported it instead of trying to
'fix' it.
> > bash$ echo '\\'
> > \\
> > bash$ /bin/echo '\\'
> > \\
> >
> > This pdksh behaviour may break some scripts and e.g. breaks
> > slony1_dump.sh script from slony1-tools package.
>
> So scripts are broken.
Any idea how to fix the script in a portable way, so it outputs
a defined number of backslashes?
And bash and our /bin/echo are broken too?
> As SUSv2 says, relying on such echo behaviour or -e option is
> non-portable.
I see.
Greets,
Jacek
_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en