Options to control option handling in file lists.
The --verbatim-files-from option disables option handling in
file lists. The --no-verbatim-files-from reverts its effect.
The --null option implies --verbatim-files-from. This restores
the documented behavior, broken by 26538c9b.
* src/common.h (verbatim_files_from_option): New global.
* src/names.c (name_elt): New member: file.verbatim
(name_add_file): Take 'verbatim' state as its third parameter.
(read_next_name): Don't call handle_option if file.verbatim
is set.
* src/tar.c: New options --verbatim-files-from and
--no-verbatim-files-from.
* doc/tar.texi: Document --verbatim-files-from and
--no-verbatim-files-from options.
* NEWS: Update.
* configure.ac: Version 1.28.90
* tests/T-null2.at: New testcase.
* tests/Makefile.am: Update.
* tests/testsuite.at: Update.
This commit is contained in:
33
NEWS
33
NEWS
@@ -1,6 +1,35 @@
|
||||
GNU tar NEWS - User visible changes. 2014-11-07
|
||||
GNU tar NEWS - User visible changes. 2015-08-03
|
||||
Please send GNU tar bug reports to <bug-tar@gnu.org>
|
||||
|
||||
|
||||
version 1.28.90 (Git)
|
||||
|
||||
* New options: --verbatim-files-from, --no-verbatim-files-from
|
||||
|
||||
The --verbatim-files-from option instructs tar to treat each line read
|
||||
from a file list as a file name, even if it starts with a dash.
|
||||
|
||||
File lists are supplied with the --files-from (-T) option. By
|
||||
default, each line read from a file list is first stripped off the
|
||||
leading and trailing whitespace and, if the result begins with a dash,
|
||||
it is treated as tar command line option.
|
||||
|
||||
Use the --verbatim-files-from option to disable this special handling.
|
||||
This facilitates the use of tar with file lists created automatically
|
||||
(e.g. by file(1) command).
|
||||
|
||||
This option affects all --files-from options that occur after it in
|
||||
the command line. Its effect is reverted by the
|
||||
--no-verbatim-files-from option.
|
||||
|
||||
* --null option reads file names verbatim
|
||||
|
||||
The --null option implies --verbatim-files-from. I.e. each line
|
||||
read from null-delimited file lists is treated as a file name.
|
||||
|
||||
This restores the documented behavior, which was broken in version
|
||||
1.27.
|
||||
|
||||
|
||||
version 1.28, 2014-07-28
|
||||
|
||||
@@ -1505,7 +1534,7 @@ Versions 1.07 back to 1.00 by Jay Fenlason.
|
||||
|
||||
|
||||
|
||||
Copyright 1994-2001, 2003-2010, 2013-2014 Free Software Foundation, Inc.
|
||||
Copyright 1994-2001, 2003-2010, 2013-2015 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU tar.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user