bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

echo vs. printf regression (darwin8)


From: David Fang
Subject: echo vs. printf regression (darwin8)
Date: Sun, 15 Aug 2010 12:59:07 -0400 (EDT)

Hi,
The ECHO that is chosen by autoconf on darwin8 (printf %s\n) is buggy:

fangism % printf %s\n foo
foonfangism% printf '%s\n' foo
foo

Must be due to the version of the Bourne shell (2.05b).
Failure is similar with sh-3.2.
The 'correct' value of ECHO should be printf '%s\n' (note the extra single quote protection). I don't know yet whether that is forward-compatible with newer versions of Bourne shell.

Don't recall which version of autoconf broke this, betweem 2.63 and latest.

Fang

David Fang
http://www.csl.cornell.edu/~fang/
http://www.achronix.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]