POSIX says that `pwd` without options should assume -L is specified.
pwd is most often invoked as a shell builtin and bash, dash, zsh, ksh
all follow POSIX and assume that -L is the default.
However coreutils pwd assumes -P is the default, according to this
comment in the source:
"POSIX requires
On Sun, Jun 29, 2014 at 9:42 AM, Pádraig Brady wrote:
> POSIX says that `pwd` without options should assume -L is specified.
> pwd is most often invoked as a shell builtin and bash, dash, zsh, ksh
> all follow POSIX and assume that -L is the default.
> However coreutils pwd assumes -P is the defau
On 06/30/2014 03:40 AM, Jim Meyering wrote:
> On Sun, Jun 29, 2014 at 9:42 AM, Pádraig Brady wrote:
>> POSIX says that `pwd` without options should assume -L is specified.
>> pwd is most often invoked as a shell builtin and bash, dash, zsh, ksh
>> all follow POSIX and assume that -L is the default
On 06/30/2014 11:29 AM, Pádraig Brady wrote:
I'll push the attached for the pwd change later.
+1
Have a nice day,
Berny
On Mon, Jun 30, 2014 at 2:29 AM, Pádraig Brady wrote:
> I'll push the attached for the pwd change later.
That looks fine. Thanks.
On Tue, Jul 1, 2014 at 8:02 AM, Jim Meyering wrote:
> On Mon, Jun 30, 2014 at 2:29 AM, Pádraig Brady wrote:
>> I'll push the attached for the pwd change later.
>
> That looks fine. Thanks.
I spoke too soon. Now that I test the patch, I see that the test
now fails for me, since $(env pwd) is no
On 07/01/2014 04:36 PM, Jim Meyering wrote:
> On Tue, Jul 1, 2014 at 8:02 AM, Jim Meyering wrote:
>> On Mon, Jun 30, 2014 at 2:29 AM, Pádraig Brady wrote:
>>> I'll push the attached for the pwd change later.
>>
>> That looks fine. Thanks.
>
> I spoke too soon. Now that I test the patch, I see t
On Tue, Jul 1, 2014 at 8:36 AM, Jim Meyering wrote:
> On Tue, Jul 1, 2014 at 8:02 AM, Jim Meyering wrote:
>> On Mon, Jun 30, 2014 at 2:29 AM, Pádraig Brady wrote:
>>> I'll push the attached for the pwd change later.
>>
>> That looks fine. Thanks.
>
> I spoke too soon. Now that I test the patch,
On 07/01/2014 04:55 PM, Jim Meyering wrote:
> On Tue, Jul 1, 2014 at 8:36 AM, Jim Meyering wrote:
>> On Tue, Jul 1, 2014 at 8:02 AM, Jim Meyering wrote:
>>> On Mon, Jun 30, 2014 at 2:29 AM, Pádraig Brady wrote:
I'll push the attached for the pwd change later.
>>>
>>> That looks fine. Thank
Jim Meyering wrote:
> Pádraig Brady wrote:
> > POSIX says that `pwd` without options should assume -L is specified.
Hmm... It does? If so I think that is a bad thing in the standard
since it does not standardize existing behavior but requires an
incompatible change to it. Existing behavior of /
On Tue, Jul 1, 2014 at 12:02 PM, Bob Proulx wrote:
> Jim Meyering wrote:
>> Pádraig Brady wrote:
>> > POSIX says that `pwd` without options should assume -L is specified.
>
> Hmm... It does? If so I think that is a bad thing in the standard
> since it does not standardize existing behavior but r
Jim Meyering wrote:
> Do you know of other uses of /bin/pwd that require -P's behavior?
About every script at my old employer used to use it in one way or
another. Since that is my past employer I no longer have access to
take an inventory. But it was quite a popular thing for people to do.
As
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
On Wed, Jul 2, 2014 at 3:39 AM, Pádraig Brady 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
Jim Meyering wrote:
> Pádraig Brady wrote:
> > OK you've convinced me.
Yay! :-)
> > It seems all /bin/pwd default to -P
> > while all builtin pwd default to -L
I think so too.
> > POSIX should probably say something about that.
Yes. Because it really should be standardizing on existing behavi
On 07/02/2014 05:57 PM, Bob Proulx wrote:
> Jim Meyering wrote:
>> Pádraig Brady wrote:
>>> OK you've convinced me.
>
> Yay! :-)
>
>>> It seems all /bin/pwd default to -P
>>> while all builtin pwd default to -L
>
> I think so too.
>
>>> POSIX should probably say something about that.
>
> Yes.
16 matches
Mail list logo