Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDAn7-0001w2-R1 for qemu-devel@nongnu.org; Wed, 17 Dec 2008 23:47:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDAn6-0001sp-4L for qemu-devel@nongnu.org; Wed, 17 Dec 2008 23:47:17 -0500 Received: from [199.232.76.173] (port=59894 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDAn6-0001sb-1a for qemu-devel@nongnu.org; Wed, 17 Dec 2008 23:47:16 -0500 Received: from bay0-omc3-s4.bay0.hotmail.com ([65.54.246.204]:60610) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDAn5-00072d-Kn for qemu-devel@nongnu.org; Wed, 17 Dec 2008 23:47:15 -0500 Message-ID: Message-Id: <4510F100-F900-4CAF-8269-7721B6FA3001@hotmail.com> From: C.W. Betts In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Qemu-devel] configure echo usage Date: Wed, 17 Dec 2008 21:46:59 -0700 References: <5ED905FB-CB4B-45D3-99B7-3D415750F2C4@sonous.com> <4948C721.2060507@oracle.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 > >