Hi,

Bastien ROUCARIES wrote
bastien@bastien-debian:/tmp/testcase$ ls
'\   \  \\
bastien@bastien-debian:/tmp/testcase$ tar -cf test.tar *
bastien@bastien-debian:/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


Reply via email to