Greg Kochanski wrote: > Echo does not support the '--' flag. The 'echo' command originates way, way back in the early days of unix. Therefore it has early unix behavior.
The echo command is actually required by POSIX not to accept any options. http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html Yes, we know that bash's built-in echo does not conform to POSIX. That is another story. > It should to, otherwise any script containing the line: > > echo "$x" That echo will *not* be the echo from coreutils. type echo echo is a shell builtin Therefore you are not using the coreutils echo but are instead using the builtin echo of whatever shell you happen to be running at your command line or your script. #!/bin/sh That could be bash's echo. Or it could be the one from 'ash' or 'dash' or other shell. Frequently they have different behavior. This is why there is a general recommendation for using printf if these differences are important. Bob -- Bob Proulx <[EMAIL PROTECTED]> http://www.proulx.com/~bob/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

