Package: tar Version: 1.23-2.1 GNU tar exits with error when trying to process the filename '\fhd =' (without quotes)
For instance, the command tar vzcf file.tar.gz '\fhd =' exits with the following error: tar: \fhd =: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors But the file actually exists; the command stat '\fhd =' returns File: `\\fhd =' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 813h/2067d Inode: 28180652 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ douglas) Gid: ( 1000/ douglas) Access: 2008-08-20 20:20:58.000000000 -0300 Modify: 2008-07-26 06:17:36.000000000 -0300 Change: 2010-09-20 18:38:54.096946555 -0300 However, when the backslash of the weird filename is escaped, tar works as expected: tar vzcf file.tar.gz '\\fhd =' \\fhd = Since other utilities (like stat, ls, and so on) work promptly with '\fhd =', I don't think that an additional backslash should be necessary. Moreover, the tar's behavior precludes it from being used this way: tar vzcf file.tar.gz * (the above command exits with error if the weird filename is in the current directory) PS: The reported problem was observed on the following shells: bash (4.1.5), zsh (4.3.10), and dash (0.5.5.1). I'm using Debian GNU/Linux unstable. -- Douglas A. Augusto -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org