[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: Change pwd to assume -L by default
From: |
Pádraig Brady |
Subject: |
Re: RFC: Change pwd to assume -L by default |
Date: |
Wed, 02 Jul 2014 11:39:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 07/02/2014 12:23 AM, Bob Proulx wrote:
> It is also the exact opposite of very long standing traditional
> behavior. And as Pádraig noted different from some other venerable
> systems such as Solaris and I will also note HP-UX too. Is there any
> legacy Unix where /bin/pwd returns the logical path? What does *BSD
> do?
FreeBSD man page states pwd defaults to -P
> For me now it is just something I tend to do from the keyboard. In my
> own bash environment I set "set -o physical" so I never have to be
> concerned about it. But when using someone else's environment if I
> type in pwd and know that it is lying to me then I routinely type in
> /bin/pwd in order to get the real path. I know that I could type in
> "pwd -P" now too. But my fingers know /bin/pwd. I can't believe I am
> the only one who does this.
OK you've convinced me.
It seems all /bin/pwd default to -P
while all builtin pwd default to -L
POSIX should probably say something about that.
The attached reverts this change.
thanks,
Pádraig.
pwd-P.patch
Description: Text Data