From: Andreas Schwab <schwab@suse.de>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFC: Use program_transform_name correctly
Date: Wed, 08 Oct 2003 19:51:00 -0000 [thread overview]
Message-ID: <jeu16jcxu0.fsf@sykes.suse.de> (raw)
In-Reply-To: <20031008193112.GA14518@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 8 Oct 2003 15:31:12 -0400")
Daniel Jacobowitz <drow@mvista.com> writes:
> On Wed, Oct 08, 2003 at 02:17:26PM -0500, Jim Blandy wrote:
>>
>> Daniel Jacobowitz <drow@mvista.com> writes:
>> > Conveniently this is no longer an issue in the src repository (or in
>> > gcc). The toplevel configure script now guarantees that
>> > $(program_transform_name) will not be empty. So $$t it is.
>>
>> But doesn't that mean I can just say:
>>
>> sed '$(program_transform_name)'
>>
>> since Make substitution doesn't respect single quotes in shell
>> commands?
>
> I'm not sure. This is all complicated by the way that things get
> escaped if $(program_transform_name) contains a ' or a \. And sed
> scripts often do contain backslashes:
> --program-transform-name='s,(gdb),\1-6.0,'
Single quotes won't work in either case, whether you write
t='$(program_transform_name)'; sed $$t
or
sed '$(program_transform_name)'
but in the first case word splitting is performed on the sed argument.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2003-10-08 19:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 21:42 Jim Blandy
2003-10-07 21:50 ` Daniel Jacobowitz
2003-10-07 22:03 ` Theodore A. Roth
2003-10-07 22:53 ` Daniel Jacobowitz
2003-10-07 23:59 ` Felix Lee
2003-10-08 1:05 ` Daniel Jacobowitz
2003-10-08 19:15 ` Jim Blandy
2003-10-08 19:18 ` Jim Blandy
2003-10-08 19:31 ` Daniel Jacobowitz
2003-10-08 19:51 ` Andreas Schwab [this message]
2003-10-08 21:22 ` Felix Lee
2003-10-08 19:32 ` Jim Blandy
2003-10-08 19:52 ` Theodore A. Roth
2003-10-08 21:32 ` Felix Lee
2003-10-09 2:09 ` Daniel Jacobowitz
2003-10-08 19:14 ` Jim Blandy
2003-10-07 22:48 ` Felix Lee
2003-10-08 17:44 ` Jim Blandy
-- strict thread matches above, loose matches on Subject: below --
2003-01-29 22:48 [RFC] Move ``length'' from struct main_type to struct type Kevin Buettner
2003-01-29 23:14 ` Daniel Jacobowitz
[not found] ` <drow@mvista.com>
2003-01-30 0:57 ` Kevin Buettner
2003-02-07 21:45 ` Kevin Buettner
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=jeu16jcxu0.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
/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