[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ensure a VPATH build
From: |
Ralf Wildenhues |
Subject: |
Re: ensure a VPATH build |
Date: |
Sat, 18 Feb 2006 11:51:16 +0100 |
User-agent: |
Mutt/1.5.9i |
Hi Keith,
* Keith Marshall wrote on Sat, Feb 18, 2006 at 11:26:30AM CET:
> On Friday 17 February 2006 1:12 pm, Ralf Wildenhues wrote:
> > > pwd_curdir="`$1`"
> > > pwd_srcdir="`cd $srcdir && $1`"
> >
> > The double quotes are not necessary here.
>
> Not just unnecessary, but positively harmful. Several shells will fail
> to parse this correctly, *including* the MSYS version of bash.
Ouch. I was referring to the fact that, on the right hand side of shell
assignments, no word splitting is done. So
foo=`echo bar baz`
will assign `bar baz' to `foo', not try to execute the command `baz'.
> See:
> https://sourceforge.net/mailarchive/message.php?msg_id=14306922
> https://sourceforge.net/mailarchive/message.php?msg_id=14354463
This is slightly different, and very bad: the MSYS sh wrongly expands
backquoted parts inside double-quoted parts. But it is necessary to do
this sometimes, and I believe there are places in autotools that rely on
this. Seems we need to work around them by using variable assignments
as intermediates.
Could you confirm that the bug also exists with assignments?
Have you filed a bug with bash or is this in a MSYS-specific issue only
so that the bug should be filed with MSYS? Could you name other shells
which expose this bug? We should probably add a warning to the Autoconf
shell portability section.
Cheers,
Ralf
- new macro, Julien Lecomte, 2006/02/16
- ensure a VPATH build (was: new macro), Ralf Wildenhues, 2006/02/17
- Re: ensure a VPATH build (was: new macro), Keith Marshall, 2006/02/18
- Re: ensure a VPATH build,
Ralf Wildenhues <=
- Re: ensure a VPATH build, Keith Marshall, 2006/02/18
- Re: ensure a VPATH build, Ralf Wildenhues, 2006/02/18
- Re: ensure a VPATH build, Keith Marshall, 2006/02/18
- double-quoted command substitutions (was: ensure a VPATH build), Ralf Wildenhues, 2006/02/18
- Re: double-quoted command substitutions (was: ensure a VPATH build), Keith Marshall, 2006/02/18
- Re: ensure a VPATH build, Keith Marshall, 2006/02/18
- Re: ensure a VPATH build, Andreas Schwab, 2006/02/18
- Re: ensure a VPATH build, Ralf Wildenhues, 2006/02/19
- Re: ensure a VPATH build, Keith MARSHALL, 2006/02/21
- Re: ensure a VPATH build, Ralf Wildenhues, 2006/02/21