On Sun, Mar 1, 2015 at 12:41 AM, Dmitrij D. Czarkoff <czark...@gmail.com> wrote:
> The diff below makes tar treat "-" in TAPE environment variable as
> stdout, making it consistant with "-f" argument.  Could be a sane
> default for those who have no tape device.

Frankly, I think someone using TAPE=- would be *in*sane.  If a
program/script depends on tar writing to $TAPE (because it invokes tar
without 'f' option), then it probably also writes to stdout, which
will break the tar file in the suggested usage.  I would *almost*
rather make using tar without the -f option an error...

Also, the diff has a bug: "TAPE=- tar cv" won't behave correctly.


Philip Guenther

Reply via email to