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

2014-07-03 Thread Chet Ramey
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 t

Redirecting to /dev/stderr on Linux truncates files

2014-07-02 Thread Greg Wooledge
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. This is t