This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What does PWD = $${PWDCMD-pwd} do in make?
- From: Phil Edwards <phil at jaj dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: Zack Weinberg <zack at codesourcery dot com>, Roland McGrath <roland at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 3 Jul 2003 14:36:37 -0400
- Subject: Re: What does PWD = $${PWDCMD-pwd} do in make?
- References: <20030703005507.GA22350@lucon.org> <200307030113.h631D3i01211@magilla.sf.frob.com> <20030703161224.GA7077@lucon.org> <87isqjtuxs.fsf@egil.codesourcery.com> <20030703165736.GA7944@lucon.org>
> > I don't think there's any reason why we couldn't change this to read
> >
> > PWDCMD = $${PWDCMD-pwd}
The comment immediately above the variable assignment explains why.
But this definitely needs to be changed. Bootstrapping 3.3 on Solaris
yesterday (actually, most of this week) ran into problems because
constructions like
cd `${PWD}`/foo
would try to execute "/path/to/builddir" as the backquoted command.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams