Subject: Re: echo -e flag
To: Hubert Feyrer <email@example.com>
From: Alistair Crooks <firstname.lastname@example.org>
Date: 09/09/2003 10:46:26
On Mon, Sep 08, 2003 at 01:29:26AM +0200, Hubert Feyrer wrote:
> On Sun, 7 Sep 2003, Bruce J.A. Nourish wrote:
> > I was wondering if anyone would approve of me adding this functionality
> > to echo(1). The only other alternative I have is to make the package
> > depend on GNU coreutils, which is a massive overkill for a puny little
> > echo flag.
> Or you patch it to not use -e, which I'd recommend w/o knowing what
> exactly is echoed there.
The echo that's built into /bin/sh on -current recognises -e and DTRT:
$ uname -a
NetBSD sys2.some.ISP.somewhere 1.6Y NetBSD 1.6Y (SYS) #18: Fri Sep 5 11:51:59 BST 2003 email@example.com.ISP.somewhere:/usr/obj/i386/usr/src/sys/arch/i386/compile/SYS i386
$ echo -e "abcd\nefghij"
$ echo "abcd\nefghij"
$ type echo
echo is a shell builtin
Alistair Crooks <firstname.lastname@example.org>
Wasabi Systems, Inc. http://www.wasabisystems.com/