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: Lev Lvovsky
Subject: Re: [Qemu-devel] configure echo usage
Date: Wed, 17 Dec 2008 09:15:06 -0800


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]