bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] tar-1.20 and filepaths containing "\r"


From: Juan Cordoba
Subject: [Bug-tar] tar-1.20 and filepaths containing "\r"
Date: Thu, 11 Sep 2008 13:45:32 -0700 (PDT)

Hello

GNU tar seems to handle filepaths containing a "\r" sequence (a slash and a 'r') differently from most other programs I tried. Is this intentional?

This is using GNU tar 1.20:

$ touch "z\r"
$ ls
z\r
$ zip z.zip z\\r
adding: z\r (stored 0%)
$ bzip2 --keep z\\r
$
$ tar cvf z.tar z\\r
tar: z\r: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

Experimenting shows that this works:

$ tar cvf z.tar z\\\\r
z\\r
$

Why does tar require twice as much escaping as any of these other programs?

Thank you

Juan


reply via email to

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