[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH] latest ash has broken 'echo' command

> True, but I have to KNOW wheter the feature is supported by the given
> product or not, right?


marcus@ulysses[0]:/tmp$ echo -n | wc
      0       0       0
marcus@ulysses[0]:/tmp$ echo -- -n | wc
      1       2       6

Writing a shell fucntion around it which returns yes or no is left as an
exercise to the reader :)

> if [ -n "$POSIX_ECHO_ARG ]; then

Environment variables for this make me feel uneasy... especially if you want
to use /bin/echo or different echos.


`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org

Reply to: