[Top][All Lists]

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

Re: echo vs. printf regression (darwin8)

From: Paolo Bonzini
Subject: Re: echo vs. printf regression (darwin8)
Date: Sun, 15 Aug 2010 20:01:15 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5

On 08/15/2010 06:59 PM, David Fang wrote:
The ECHO that is chosen by autoconf on darwin8 (printf %s\n) is buggy:

fangism % printf %s\n foo
foonfangism% printf '%s\n' 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.

The problem seems to be in the way that "printf '%s\n'" is assigned to as_echo.


reply via email to

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