New task #5722 in pdksh: build-in echo broken

Jakub Bogusz qboosh at pld-linux.org
Wed Nov 2 14:38:37 CET 2005


On Wed, Nov 02, 2005 at 02:23:46PM +0100, Flyspray - The bug killer! wrote:
> Project: PLD 2.x (Ac)
> 
>   Reported by: Jacek Konieczny (jajcus)
>       Package: pdksh
>       Version: 5.2.14-42
>       Summary: build-in echo broken
>   
>   Both /bin/echo and bash built-in echo don't process '\' unless
> '-e' option is given, but pdksh built-in echo does (and it is
> documented in the manual).
> 

(updated)
> pdksh$ echo '\'
> \
> pdksh$ echo '\\'
> \\

And it conforms to POSIX/SUSv2 specs.

> 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.
As SUSv2 says, relying on such echo behaviour or -e option is
non-portable.


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/



More information about the pld-devel-en mailing list