Subject: Re: libtools patch for Linux/dash
To: None <tech-pkg@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 09/02/2006 14:29:48
On Sat, Sep 02, 2006 at 12:24:46AM +0100, David Laight wrote:
> On Fri, Sep 01, 2006 at 04:17:58PM +0200, Joerg Sonnenberger wrote:
> > 
> > Well, continue reading. Either the shell or the echo builtin is
> > expanding \1 incorrectly. echo is not supposed to expand anything, so it
> > has to be the shell. In either case, it is a major violation of SUS.
> 
> You'll find that there are two definitions for 'echo', the BSD one and
> the SYSV one.  The latter will convert some \x escape sequences.

Sure, but what SUS specifies is a bare-bone echo -- no options (not even
-n) and certainly not any modifications of the argments. Too much
depends on this and libtool is often a good test for the brokeness of
shell implementations :-)

Joerg