-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to m...@ice.filescope.com on 3/24/2009 9:20 PM:
> The question I have is why couldn't echo have a -- flag? Is it for POSIX or 
> some other kind of compatibility reasons? Is there any easier way to 
> accomplish what I want other than printf %s\\n "$var"?

You are correct: echo does not parse -- because of POSIX.  And POSIX is
also explicit that for portability, you are better off using printf than echo.
http://www.opengroup.org/onlinepubs/9699919799/utilities/echo.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknJrmMACgkQ84KuGfSFAYAKyACdEE0soJAS/QESe0IJb4P+tPAu
FwIAnj5EysavtkXtGxPFi8eb9dAkP6Dg
=ueDw
-----END PGP SIGNATURE-----


Reply via email to