bug-bash
[Top][All Lists]
Advanced

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

Re: a patch to fix sh_stat on SunOS


From: Chet Ramey
Subject: Re: a patch to fix sh_stat on SunOS
Date: Mon, 22 Aug 2016 11:04:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/21/16 10:36 PM, Dmitry Goncharov wrote:

>> But why should bash override the semantics that an OS provides for
>> /dev/fd, resulting in differing behavior between the shell and other
>> utilities with the same pathname argument?
> 
> For the benefit of the user. Currently bash behavior is different from the
> native test and ksh on sunos.

At least on Solaris, /bin/test is not really a standalone binary, but
part of ksh93.  Even though the man page references GNU test, it's
obvious from running `strings' or `nm' on the binary that it's part of
ksh93.

> What about a patch that switches to fstat only if such /dev/fd oddity was
> determined at configuration time?

I'd rather it were done via an explicit switch to configure.  I'd look at
a patch to do that.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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