I noticed tar showing an error with files which contain some backslashes.

Example:
user@pc:~$ touch '\\'
user@pc:~$ tar -cf test.tar '\\'

or
user@pc:~$ touch \\\\
user@pc:~$ tar -cf test.tar \\\\

Output:

tar: \\: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

But:
user@pc:~$ touch \\
user@pc:~$ tar -cf test.tar \\
works.

and:
user@pc:~$ touch '\'
user@pc:~$ tar -cf test.tar '\'
works

Best regards


Reply via email to