bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] --no-recursion placed after --files-from will not take effect


From: Yun-Chih Chen
Subject: [Bug-tar] --no-recursion placed after --files-from will not take effect
Date: Thu, 30 Aug 2018 11:59:28 +0800

This one is buggy (--no-recursion doesn't take effect):
$ find . -depth -xdev -print0 -type f | tar --create --null
--files-from=- --ignore-failed-read --same-permissions --no-recursion
--label test --sparse --numeric-owner --file /tmp/bar && tar tf
/tmp/bar

./1/2/3/d
./1/2/3/c
./1/2/3/b
./1/2/3/a
./1/2/3/
./1/2/3/d
./1/2/3/c
./1/2/3/b
./1/2/3/a
./1/2/
./1/2/3/
./1/2/3/d
./1/2/3/c
./1/2/3/b
./1/2/3/a
./1/
./1/2/
./1/2/3/
./1/2/3/d
./1/2/3/c
./1/2/3/b
./1/2/3/a
./
./1/
./1/2/
./1/2/3/
./1/2/3/d
./1/2/3/c
./1/2/3/b
./1/2/3/a

This is okay, if --no-recursion is placed before --files-from:
$ find . -depth -xdev -print0 -type f | tar --no-recursion --create
--null --files-from=- --ignore-failed-read --same-permissions --sparse
--numeric-owner --file /tmp/bar3 && tar tf /tmp/bar3
./1/2/3/d
./1/2/3/c
./1/2/3/b
./1/2/3/a
./1/2/3/
./1/2/
./1/
./

tar starts recursively retrieving files when parsing "--files-from"
before "--no-recursion" can even take effect.



reply via email to

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