[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Fwd: [regression] tar mess up \ and \\ files
From: |
Markus Steinborn |
Subject: |
Re: [Bug-tar] Fwd: [regression] tar mess up \ and \\ files |
Date: |
Sun, 02 Mar 2014 20:19:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 |
Hi,
Bastien ROUCARIES wrote
address@hidden:/tmp/testcase$ ls
'\ \ \\
address@hidden:/tmp/testcase$ tar -cf test.tar *
address@hidden:/tmp/testcase$ tar -tf test.tar
'\\
\\
\\
Well, things are more complicated:
tar --no-unquote -cf test.tar *
works as expected. "tar --help" tells us:
--no-unquote do not unquote filenames read with -T
--unquote unquote filenames read with -T (default)
whereas the texinfo manual says:
@item --no-unquote
Treat all input file or member names literally, do not interpret
escape sequences. @xref{input name quoting}.
@item --unquote
Enable unquoting input file or member names (default). @xref{input
name quoting}.
@anchor{input name quoting}
By default @GNUTAR{} attempts to @dfn{unquote} each file or member
name, replacing @dfn{escape sequences} according to the following
table:
Nowhere it mentions that unquoting is restricted to filenames read with
-T. From the documentation I'd guess that unquoting applies to filenames
from the command line, too.
With tar 1.27.1 it in fact applies to command line filenames, too - in
conformance with the texinfo doc, but in conflict with "tar --help".
So what behavior is intended?
Greetings
Markus Steinborn