coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: Change pwd to assume -L by default


From: Jim Meyering
Subject: Re: RFC: Change pwd to assume -L by default
Date: Wed, 2 Jul 2014 09:05:49 -0700

On Wed, Jul 2, 2014 at 3:39 AM, Pádraig Brady <address@hidden> wrote:
> 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.

Good call, Bob.  Thank you both.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]