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
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
Yun-Chih Chen ha escrit:
> This one is buggy (--no-recursion doesn't take effect):
This is intended. Please see the GNU Tar Manual, section 3.4.4
"Position-Sensitive Options".
Regards,
Sergey