[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in pwd POSIX-compliance
From: |
Eric Blake |
Subject: |
Re: bug in pwd POSIX-compliance |
Date: |
Wed, 16 Feb 2005 21:50:35 -0700 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
According to Chet Ramey on 2/16/2005 12:55 PM:
>>POSIX requires pwd(1) with the -P option to update the PWD environment
>>variable with a version scrubbed of all symlinks. See
>>http://www.opengroup.org/onlinepubs/009695399/utilities/pwd.html
>>
> I agree that the standard says that, but no shell does it that way. I'm
> going to ignore it for now. I'd bet that someone pinched the text in
> question from the `cd' description at some point.
Based on your reaction, and the reaction on the coreutils list for
/bin/pwd, I raised this as a concern against the Austin group; see
https://www.opengroup.org/sophocles/show_mail.tpl?source=L&listname=austin-review-l&id=1899.
Depending on the resolution, the requirement for `pwd -P' to set PWD may
become optional or removed altogether. So your approach of leaving well
enough alone for now is probably the best course of action.
--
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net