bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] possible extraction issue : file named '['


From: Skunk Worx
Subject: [Bug-tar] possible extraction issue : file named '['
Date: Fri, 19 May 2006 20:32:16 -0700
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

I am curious about why I can't incrementally extract a file named '[' from an archive. here goes :

$ ls -l
total 696
-rwxrwxr-x 1 skunk skunk 707718 May 19 20:12 tar

$ ./tar --version | grep ^tar
tar (GNU tar) 1.15.90

$ touch ']' '[' '#'

$ ls
[  ]  #  tar

$ tar -cvf a.tar '[' ']' '#'
[
]
#

$ tar -tvf a.tar
-rw-rw-r-- skunk/skunk 0 2006-05-19 20:14 [
-rw-rw-r-- skunk/skunk 0 2006-05-19 20:14 ]
-rw-rw-r-- skunk/skunk 0 2006-05-19 20:14 #

$ rm ']' '[' '#'

$ ls
a.tar  tar

$ tar -xvf a.tar '#'
#

$ tar -xvf a.tar ']'
]

$ tar -xvf a.tar '['
tar: [: Not found in archive
tar: Error exit delayed from previous errors

$ ls
]  #  a.tar  tar

$ tar -xvf a.tar
[
]
#

$ ls
[  ]  #  a.tar  tar

---
John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]