bug-bash
[Top][All Lists]
Advanced

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

Re: Redirecting to /dev/stderr on Linux truncates files


From: Chet Ramey
Subject: Re: Redirecting to /dev/stderr on Linux truncates files
Date: Thu, 03 Jul 2014 10:59:00 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 7/2/14, 9:35 AM, Greg Wooledge wrote:
> An IRC user initially reported this behavior, which is present in
> at least bash 4.0, 4.2 and 4.3 on Linux (but *not* on HP-UX):
> 
> Redirection to /dev/stderr on platforms that have /dev/stderr as a
> part of the native file system is *not* equivalent to >&2 as the
> manual would seem to imply.

I would have thought that the "native file system" part was obvious,
but maybe I need to state it in the documentation.

In any event, I'm not sure I want to get into the business of detailing
how Linux differs from other Unix variants in the bash documentation.
Mac OS X, for instance, displays two lines of output.  I'm sure it's
representative of the BSDs, though I have not checked others.

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



reply via email to

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