This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]