qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] configure echo usage


From: C . W . Betts
Subject: Re: [Qemu-devel] configure echo usage
Date: Wed, 17 Dec 2008 21:46:59 -0700

The reason why /bin/sh's echo doesn't work is because it's working in legacy mode: http://developer.apple.com/releasenotes/Darwin/RN-Unix03Conformance/
Maybe changing the shell that processes it to /bin/bash?
On Dec 17, 2008, at 10:15 AM, Lev Lvovsky wrote:


On Dec 17, 2008, at 1:32 AM, John Haxby wrote:

That doesn't give the same output: the original puts each of $0 and the $@'s with single quotes around them in the config file, yours misses out the quotes. Replacing the original echo -n, printf and echo like this would work though:

 echo "# Configured with:$(printf " '%s'" "$0" "$@")" >> $config_mak

The above works as intended.

If the OS X shell doesn't do $(...) then this will work, albeit at the cost of readabilty

 echo "# Configured with:"`printf " '%s'" "$0" "$@"` >> $config_mak

This works too.

Typically how do these patches get absorbed into the source?

thanks!
-lev









reply via email to

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