summaryrefslogtreecommitdiff
path: root/tar/bsdtar.1
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-10-24 12:54:48 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2019-04-15 08:59:07 +0200
commit7c5e94c9ec3a70ddaeec6c554149eb13db9cfe60 (patch)
tree910a217dd29a26a1fc25ab45e5f80ae1a0c4f34e /tar/bsdtar.1
parent19bd077987ff26a4cb108edde5eaf970837aa1f0 (diff)
downloadlibarchive-7c5e94c9ec3a70ddaeec6c554149eb13db9cfe60.tar.gz
non-recursive extract and list
Sometimes it makes sense to extract or list a directory contained in an archive without also doing the same for the content of the directory, i.e. allowing -n (= --no-recursion) in combination with the x and t modes. bsdtar uses the match functionality in libarchive to track include matches. A new libarchive API call archive_match_set_inclusion_recursion() gets introduced to influence the matching behavior, with the default behavior as before. Non-recursive matching can be achieved by anchoring the path match at both start and end. Asking for a directory which itself isn't in the archive when in non-recursive mode is an error and handled by the existing mechanism for tracking unused inclusion entries.
Diffstat (limited to 'tar/bsdtar.1')
-rw-r--r--tar/bsdtar.13
1 files changed, 1 insertions, 2 deletions
diff --git a/tar/bsdtar.1 b/tar/bsdtar.1
index 4c0fe818..82840547 100644
--- a/tar/bsdtar.1
+++ b/tar/bsdtar.1
@@ -398,8 +398,7 @@ and the default behavior in c, r, and u modes or if
.Nm
is run in x mode as root.
.It Fl n , Fl Fl norecurse , Fl Fl no-recursion
-(c, r, u modes only)
-Do not recursively archive the contents of directories.
+Do not operate recursively on the content of directories.
.It Fl Fl newer Ar date
(c, r, u modes only)
Only include files and directories newer than the specified date.