1 |
Neil Bothwick schrieb: |
2 |
> On Fri, 30 Dec 2005 18:58:17 +0100, Alexander Skwar wrote: |
3 |
> |
4 |
>> > tar outputs to stdout by default, |
5 |
>> |
6 |
>> Not always. |
7 |
> |
8 |
> From man tar |
9 |
|
10 |
So, why do you suppose that the command is called |
11 |
"tape (file) archiver"? |
12 |
|
13 |
While you're right as far as GNU tar is concerned, |
14 |
you're wrong as far as the default of tar is concerned. |
15 |
|
16 |
Eg. see the man page of tar on hp-ux, <http://docs.hp.com/en/B2355-90690/tar.1.html>: |
17 |
|
18 |
| f |
19 |
| Use the next arg argument as the name of the archive instead |
20 |
| of the default, /dev/rmt/0m. |
21 |
|
22 |
Or Solaris 10 <http://docs.sun.com/app/docs/doc/816-5165/6mbb0m9u1?q=tar&a=view>: |
23 |
|
24 |
| f |
25 |
| |
26 |
| File. Use the tarfile argument as the name of the tarfile. If |
27 |
| is specified, /etc/default/tar is not searched. If f is omitted, |
28 |
| tar will use the device indicated by the TAPE environment variable, |
29 |
| if set. Otherwise, tar will use the default values defined in |
30 |
| /etc/default/tar |
31 |
|
32 |
> So "-f -" is unnecessary, but harmless. |
33 |
|
34 |
No, "f" is necessary if you don't wish to rely on unknown |
35 |
defaults. Even with GNU tar, you don't know FOR SURE if |
36 |
"-f -" is the default. Who knows? Maybe DEFAULT_ARCHIVE |
37 |
was set to something else while building? |
38 |
|
39 |
Alexander Skwar |
40 |
-- |
41 |
gentoo-user@g.o mailing list |