This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Use program_transform_name correctly


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,'

(or maybe that needs more backslashes, I always forget)

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]