Subject: echo weirdness
To: None <current-users@NetBSD.org>
From: Christian Biere <christianbiere@gmx.de>
List: current-users
Date: 02/17/2004 16:44:18
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

the builtin echo of /bin/sh understands the parameter '-e' to enable
printf-style escape codes. This isn't documented anywhere AFAICS. The
manpage refers to echo(1) but /bin/echo doesn't understand '-e'. Isn't
this a doc-bug? Also /bin/sh doesn't use getopt-style parsing for the
arguments of echo so that "echo -n -e blah" has different output as
"echo -ne blah". I wonder whether that's a bug or intentional. It
should be documented in either case, IMHO.

--=20
Christian

--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAMjbS0KQix3oyIMcRAitsAKCLlG+Iintzh5urtKB6+CgC5xHDIACcD1sh
IzGqsagflxWxXTDuuRQb3uM=
=s9Tp
-----END PGP SIGNATURE-----

--azLHFNyN32YCQGCU--