This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] Rely on the shell's built-in 'pwd' command.


On Thu, 19 Nov 2015, Ludovic CourtÃs wrote:

> AFAIK insisting on /bin/pwd is unnecessary nowadays.  Autoconf-generated
> scripts have been using the shellâs built-in âpwdâ for a long time.

The point of at least some of these uses of pwd is to get the physical 
directory with symlinks resolved, not the shell's notion of the directory 
that may involve symlinks.  It would need to be pwd -P, if that's 
sufficiently portable.  (Really io/ftwtest-sh should be running pwd on the 
test host not the build system, but that would require a new addition to 
the set of test-wrapper makefile variables.)

-- 
Joseph S. Myers
joseph@codesourcery.com

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