Thread View: gnu.utils.bug
2 messages
2 total messages
Started by Robert Crosson
Tue, 14 Apr 1992 15:55
Bug/feature of the '-T -' option of gtar
Author: 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
Bug/feature of the '-T -' option of gtar
Author: Michael I Bushnell
Date: Wed, 15 Apr 1992 05:20
Date: Wed, 15 Apr 1992 05:20
29 lines
1693 bytes
1693 bytes
Resent-Date: 14 Apr 92 15:55:34 GMT Original-To: gnu-utils-bug@prep.ai.mit.edu Path: cam!cam.nist.gov!crosson From: crosson@cam.nist.gov (Robert Crosson) Sender: gnulists@ai.mit.edu Newsgroups: gnu.utils.bug Date: 14 Apr 92 15:55:34 GMT Resent-From: bug-gnu-utils-request@prep.ai.mit.edu 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? This is a side effect of the general rule that tar does the current directory when there is no list of names. The names read from -T are treated exactly like those read from the command line. -mi
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads