Subject: Re: libtools patch for Linux/dash
To: None <>
From: David Laight <>
List: tech-pkg
Date: 09/02/2006 15:48:09
On Sat, Sep 02, 2006 at 02:29:48PM +0200, Joerg Sonnenberger wrote:
> 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 :-)


    A string to be written to standard output.  If the first operand is -n,
    or if any of the operands contain a backslash ( '\' ) character, the
    results are implementation-defined.

For XSI conformance, the SYSV echo rules apply - so "-n" is printed and
a set of \x translations happen.  However converting \1 to a 0x01 byte
isn't one of them - you need to use \01, or more safely \001.


David Laight: