This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Rely on the shell's built-in 'pwd' command.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Ludovic Courtès <ludo at gnu dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 20 Nov 2015 11:46:48 +0000
- Subject: Re: [PATCH] Rely on the shell's built-in 'pwd' command.
- Authentication-results: sourceware.org; auth=none
- References: <87610xisjp dot fsf at gnu dot org> <alpine dot DEB dot 2 dot 10 dot 1511192146570 dot 6968 at digraph dot polyomino dot org dot uk> <87poz5j83g dot fsf at gnu dot org>
On Fri, 20 Nov 2015, Ludovic CourtÃs wrote:
> Joseph Myers <joseph@codesourcery.com> skribis:
>
> > 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.
>
> Itâs not clear to which of these uses want the canonical directory
> name. Which ones did you have in mind?
I think all of those uses need the canonical name.
--
Joseph S. Myers
joseph@codesourcery.com