X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=doc%2Ftar.texi;h=2be123ac9751a22f12111d33772b6814edc0819c;hb=288dd472e33a7a10578f2f68572301d5e58e12d3;hp=ece40f4e7cf3903ae1811e33210c6b5cf4c70e0e;hpb=2af87fa2776c8125a587a9b0c2c4fae3bf921ff7;p=chaz%2Ftar diff --git a/doc/tar.texi b/doc/tar.texi index ece40f4..2be123a 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -3087,15 +3087,17 @@ directories that are on different file systems from the current directory. @opsummary{one-top-level} -@item --one-top-level +@item --one-top-level[=@var{dir}] Tells @command{tar} to create a new directory beneath the extraction directory -(or the one passed to @option{-C}) and use it to guard against tarbombs. The -name of the new directory will be equal to the name of the archive with the -extension stripped off. If any archive names (after transformations from -@option{--transform} and @option{--strip-components}) do not already begin with -it, the new directory will be prepended to the names immediately before -extraction. Recognized extensions are @samp{.tar}, @samp{.taz}, @samp{.tbz}, -@samp{.tb2}, @samp{.tgz}, @samp{.tlz} and @samp{.txz}. +(or the one passed to @option{-C}) and use it to guard against +tarbombs. In the absence of @var{dir} argument, the name of the new directory +will be equal to the base name of the archive (file name minus the +archive suffix, if recognized). Any member names that do not begin +with that directory name (after +transformations from @option{--transform} and +@option{--strip-components}) will be prefixed with it. Recognized +file name suffixes are @samp{.tar}, and any compression suffixes +recognizable by @xref{--auto-compress}. @opsummary{overwrite} @item --overwrite @@ -3625,7 +3627,7 @@ successfully. For example, @w{@samp{tar --version}} might print: @smallexample tar (GNU tar) @value{VERSION} -Copyright (C) 2013 Free Software Foundation, Inc. +Copyright (C) 2013-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. @@ -4028,7 +4030,7 @@ Pad output with spaces to the @var{n}th column. If the @samp{@{@var{n}@}} part is omitted, the current screen width is assumed. -@item %@var{c} +@item %c This is a shortcut for @samp{%@{%Y-%m-%d %H:%M:%S@}t: %ds, %@{read,wrote@}T%*\r}, intended mainly for use with @samp{ttyout} action (see below). @end table