But should echo ignore arguments it doesn't understand (like UNIX
does) or complain (like GNU echo does)? Also note this from the bash
manual:
echo does not interpret -- to mean the end of options.
This is just a matter of the proper behavior to implement echo -- with.
Using two programs is the approach that "Program Design in the Unix
Environment" suggests taking in a time like this, but it breaks
compatibility with previous versions of echo.
There is no solution. Let us not forget:
values of Δ will give rise to doom!
On Mar 26, 2008, at 3:43 PM, Francisco J Ballesteros wrote:
but
echo -n '-n
'
is a hack.
with a different implementation it might as well
complaint that '
' is an invalid flag.
And in any case, the "do the same thing the same way
all the times" argument suggests that -- should terminate
option processing. doesn't it?