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: Thu, 11 Aug 2016 07:52:51 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/10/16 5:38 PM, Dmitry Goncharov wrote:

>> > does "If any file argument to one of the primaries is of the form
> 
>> > /dev/fd/n, then file descriptor n is checked.".
> 
> 
>> It seems like a documentation error.
> 
> What should the man page say instead?

Probably something close to what the current text about using /dev/fd in
redirections says, maybe:

\fBBash\fP handles filenames of the form \fI/dev/fd\fP specially when they
are used as arguments to unary operators.
If the operating system on which \fBbash\fP is running provides these
special files, bash will use them; otherwise if
any \fIfile\fP argument to one of the primaries is of the form
\fI/dev/fd/n\fP, then file descriptor \fIn\fP is checked.

-- 
``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]