Article View: gnu.utils.bug
Article #146Bug/feature of the '-T -' option of gtar
From: Robert Crosson
Date: Tue, 14 Apr 1992 15:55
Date: Tue, 14 Apr 1992 15:55
17 lines
1145 bytes
1145 bytes
I have discovered that the -T option of Gnu tar version 1.10 may have a bug in it. I created a script that piped file names to tar which was invoked with the option '-T -'. In testing the script, I found that when tar was invoked with that option, but no file names were sent before the pipe closed, tar used the current directory as the place to select files from for archiving. The script line including tar was essentially as follows: find <findoptions> | sed -f <sed-script-file> | tar -cvf - -T - > <filename> I would have thought that, given the '-T -' option but no file names, tar would have simply exited without doing anything. Is this a feature or a bug? Bob Crosson crosson@cam.nist.gov
Technical Details
Message-ID:
<9673@fs3.cam.nist.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cam.NIst.GOV!crossonShow 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: Bug/feature of the '-T -' option of gtar Message-ID: <9673@fs3.cam.nist.gov> Sender: gnulists@ai.mit.edu Organization: National Institute of Standards and Technology Distribution: gnu Date: Tue, 14 Apr 1992 15:55:34 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 18