This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix broken 'make install-po'. Fixes PR other/7727
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Josh Martin <Josh dot Martin at abq dot sc dot philips dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 14 Sep 2002 03:44:56 -0300
- Subject: Re: [PATCH] Fix broken 'make install-po'. Fixes PR other/7727
- Organization: GCC Team, Red Hat
- References: <200209120422.g8C4M1B06814@atoae450.abq.sc.philips.com>
On Sep 12, 2002, Josh Martin <Josh.Martin@abq.sc.philips.com> wrote:
> Correct me if I'm wrong, but won't the idiom you described be resistant to
> quoting problems? I thought quoting with 's was non-expanding.
Consider:
LIST1 = a b c
LIST2 = `pwd`/dir $$some_shell_var
LIST3 = 'single quotes' "double quotes"
list=$(LIST[123]); for f in $$list ...
In the case of LIST1, picking single or double quotes doesn't matter.
In the case of LIST2, picking single quotes would probably break. In
the case of LIST3, neither single nor double quotes would work. So
you have to be careful and actually know what the list expands to and
how the shell is supposed to interpret it.
--
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