From: John Haxby <john.haxby@oracle.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] configure echo usage
Date: Wed, 17 Dec 2008 10:34:02 +0000 [thread overview]
Message-ID: <4948D59A.9040102@oracle.com> (raw)
In-Reply-To: <jeoczb9ls4.fsf@sykes.suse.de>
Andreas Schwab wrote:
> John Haxby <john.haxby@oracle.com> writes:
>
>
>> echo "# Configured with:$(printf " '%s'" "$0" "$@")" >> $config_mak
>>
>
> You don't need echo if you have printf.
>
> { printf "# Configured with:"
> printf " '%s'" "$0" "$@"
> } >> $config_mak
>
>
You're missing a new line :-) Seriously though, there are any number of
ways to do the job, some longer and more obscure than others. If you
don't have printf and echo -n you can still do it:
echo $(echo "# Configured with:"; for i in "$0" "$@"; do echo "'$i'";
done)
and there are ways of using 'tr -d' as well. And, I'm sure, many
others. We should have a Holiday Competition for the most obscure :-)
jch
next prev parent reply other threads:[~2008-12-17 10:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 7:24 [Qemu-devel] configure echo usage Lev Lvovsky
2008-12-17 9:32 ` John Haxby
2008-12-17 9:46 ` Andreas Schwab
2008-12-17 10:34 ` John Haxby [this message]
2008-12-17 17:15 ` Lev Lvovsky
[not found] ` <4510F100-F900-4CAF-8269-7721B6FA3001@hotmail.com>
2008-12-18 4:46 ` C.W. Betts
2008-12-18 5:23 ` Lev Lvovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4948D59A.9040102@oracle.com \
--to=john.haxby@oracle.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).