[PATCH v2] Rely on the shell's built-in 'pwd' command.
Ludovic Courtès
ludo@gnu.org
Sat Nov 21 09:35:00 GMT 2015
Joseph Myers <joseph@codesourcery.com> skribis:
> 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.
How about this variant?
Thanks,
Ludo’.
ChangeLog:
2015-11-21 Ludovic Courtès <ludo@gnu.org>
* configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
* configure: Regenerate.
* io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
* scripts/rellns-sh: Likewise. Remove 'pwd' variable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 3096 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151121/b5735bce/attachment.bin>
More information about the Libc-alpha
mailing list