bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Combination of -T and --no-recursion (behavior change in 1.29)


From: Norihiro Tanaka
Subject: [Bug-tar] Combination of -T and --no-recursion (behavior change in 1.29)
Date: Tue, 17 May 2016 23:53:38 +0900

Hi,

After fix in b500277de7eeac4893fe6517c38dc417b4a4d976, behavior for
combination of -T and --recursion changed.

$ mkdir -p a/b
$ touch a/a.txt a/b/b.txt
$ tar --version
tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
$ find a | tar -c -T - -f - --no-recursion | tar tf -
a/
a/a.txt
a/b/
a/b/b.txt
$ src/tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
$ find a | src/tar -c -T - -f - --no-recursion | tar tf -
a/
a/a.txt
a/b/
a/b/b.txt
a/a.txt
a/b/
a/b/b.txt
a/b/b.txt
$ find a | src/tar -c --no-recursion -T - -f - | tar tf -
a/
a/a.txt
a/b/
a/b/b.txt

As above, after fix, if we write --no-recursion later than -T,
--no-recursion does not work.

Thanks,
Norihiro




reply via email to

[Prev in Thread] Current Thread [Next in Thread]