[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: Redirecting to /dev/stderr on Linux truncates files
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2014-07-03 17:59:00
Message-ID: 53B599E4.40809 () case ! edu
[Download RAW message or body]

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic