On Sun, Mar 02, 2014 at 20:19:36 +0100, Markus Steinborn wrote:
> 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".
Here's quick patch to remove the mention of "-T" from the
--unquote/-no-unquote entries in "tar --help" and tar.1.
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - [email protected] - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239
diff --git a/doc/tar.1 b/doc/tar.1
index cd133d9..d256a0a 100644
--- a/doc/tar.1
+++ b/doc/tar.1
@@ -839,7 +839,7 @@ Disable the effect of the previous \fB\-\-null\fR option.
Avoid descending automatically in directories.
.TP
\fB\-\-no\-unquote\fR
-Do not unquote filenames read with \fB\-T\fR.
+Do not unquote input file or member names.
.TP
\fB\-\-null\fR
Instruct subsequent \fB\-T\fR options to read null-terminated names,
@@ -867,7 +867,7 @@ unless overridden by environment variable \fBSIMPLE_BACKUP_SUFFIX\fR.
Get names to extract or create from \fIFILE\fR.
.TP
\fB\-\-unquote\fR
-Unquote filenames read with \fB\-T\fR (default).
+Unquote file or member names (default).
.TP
\fB\-X\fR, \fB\-\-exclude\-from\fR=\fIFILE\fR
Exclude files matching patterns listed in FILE.
diff --git a/src/tar.c b/src/tar.c
index ac32f97..cd32379 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -717,9 +717,9 @@ static struct argp_option options[] = {
{"no-null", NO_NULL_OPTION, 0, 0,
N_("disable the effect of the previous --null option"), GRID+1 },
{"unquote", UNQUOTE_OPTION, 0, 0,
- N_("unquote filenames read with -T (default)"), GRID+1 },
+ N_("unquote input file or member names (default)"), GRID+1 },
{"no-unquote", NO_UNQUOTE_OPTION, 0, 0,
- N_("do not unquote filenames read with -T"), GRID+1 },
+ N_("do not unquote input file or member names"), GRID+1 },
{"exclude", EXCLUDE_OPTION, N_("PATTERN"), 0,
N_("exclude files, given as a PATTERN"), GRID+1 },
{"exclude-from", 'X', N_("FILE"), 0,