[PLUG] Non-unix behavior in RedHat 8.0
Felix Lee
flee at aracnet.com
Tue Oct 29 02:13:00 UTC 2002
Bill Thoen <bthoen at gisnet.com>:
> (a newline after the 'abc') How do I get the traditional behavior
> (i.e. echo the newline)?
there is no traditional behavior. 'echo' is a traditional
Unix incompatibility, one of the original BSD vs System V
problems. And Tenth Edition Unix (Bell Labs) only
interprets backslash escapes if you give echo the -e option,
whereas modern Unix standards like
http://www.opengroup.org/onlinepubs/007908799/xcu/echo.html
say that echo doesn't interpret any options (not even -n).
use 'printf' instead of 'echo' for anything non-trivial.
--
More information about the PLUG
mailing list