This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: (toplevel patch) Clean up sed
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: DJ Delorie <dj at delorie dot com>
- Cc: neroden at twcny dot rr dot com, gcc-patches at gcc dot gnu dot org, gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com
- Date: 28 Dec 2002 02:03:39 -0200
- Subject: Re: (toplevel patch) Clean up sed
- Organization: GCC Team, Red Hat
- References: <20021228003319.GA2421@doctormoo><200212280036.gBS0apJ28639@envy.delorie.com>
On Dec 27, 2002, DJ Delorie <dj@delorie.com> wrote:
>> +CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) "${CC_FOR_TARGET}
> Shouldn't the quotes surround the whole expression? What if
> CC_FOR_TARGET has spaces in it?
It doesn't matter. It would be enough to quote just the space and the
parentheses. Variable expansion occurs after word-splitting, so the
assigned value is not altered by word separators that are not present
in the original command.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer