What does PWD = $${PWDCMD-pwd} do in make?

Phil Edwards phil@jaj.com
Thu Jul 3 18:41:00 GMT 2003


> > 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



More information about the Gcc mailing list