This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2 PATCH: Avoid hardcoded uses of pwd
> I could go with `PWDCMD = $${PWDCMD-pwd}' in Makefiles, though.
I'm happy to leave the shell magic -- and even the semantics -- to you. :-)
I just don't want to have to type ${PWDCMD-pwd} all over the place in
Makefiles; it's too error prone and it's two hard to read. This is like
writing:
(pwdcmd ? pwdcmd : "pwd")
all over the place in a C program; we should factor it out into a single
place.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com