🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #148

Gnu tar 1.10 bug/feature of '-T' option

#148
From: Robert Crosson
Date: Tue, 14 Apr 1992 19:51
18 lines
1194 bytes
I have compiled Gnu tar 1.10 with gcc 1.40 on my Interactive Unix
version 2.2 PC.  Everything works well except the '-T' option with
the '-' argument.  I want tar to read the standard input for file
names to archive and send to the standard output.  In other words,
I create a pipe as follows:

find <options> | sed -f <sed-script-file> | tar -cvf - -T - > <filename>

This works fine until no file names come through the standard input.
If sed completes without producing any output, tar doesn't just exit
without generating any output, as I would have expected.  Instead, it
starts taking file and directory names from the current directory an
archives those.

Is this a bug, or a feature?

Bob Crosson
crosson@cam.nist.gov
Technical Details
Message-ID: <9675@fs3.cam.nist.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cam.NIst.GOV!crosson

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cam.NIst.GOV!crosson
From: crosson@cam.NIst.GOV (Robert Crosson)
Subject: Gnu tar 1.10 bug/feature of '-T' option
Message-ID: <9675@fs3.cam.nist.gov>
Keywords: Gnu tar bug option
Sender: gnulists@ai.mit.edu
Organization: National Institute of Standards and Technology
Distribution: gnu
Date: Tue, 14 Apr 1992 19:51:01 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 19