Subject: bin/2330: pax -r -v uses stderr for output
To: None <gnats-bugs@NetBSD.ORG>
From: Greg Hudson <ghudson@mit.edu>
List: netbsd-bugs
Date: 04/14/1996 17:19:59
>Number: 2330
>Category: bin
>Synopsis: pax -r -v uses stderr for output
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 14 17:35:02 1996
>Last-Modified:
>Originator: Greg Hudson
>Organization:
MIT SIPB
>Release: 1.1
>Environment:
System: NetBSD glacier 1.1 NetBSD 1.1 (GLACIER) #0: Sun Jan 14 06:01:22 EST 1996 ghudson@glacier:/usr/var/tmp/build/src/sys/arch/i386/compile/GLACIER i386
>Description:
pax displays filenames on stderr when given the options -r and
-v. In general, it is poor for a process to display non-error
output on the stderr stream. When you're writing a tar file
to standard out (i.e. when given the options -w and -v, and
without an output file), it makes sense to use the stderr
stream for filenames, but otherwise it's poor.
For reference, tar only uses stderr for filenames when you give
it something like "tar cvf -". If you give it "tar cvf foo.tar",
it still writes filenames to stdout.
(Also note that if the behavior of pax is changed in accordance
to this pr, its documentation should not be changed. In this
instance, pax currently functions as documented.)
>How-To-Repeat:
pax -r -v < file.tar | wc
>Fix:
>Audit-Trail:
>Unformatted: