This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: (toplevel patch) Clean up sed


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


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