X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=doc%2Ftar.texi;h=abc81df393f46fe4920583a479492dc2536783e2;hb=762be4f2bd696b3fcc381da7d78fcdd4114215ec;hp=9a8b171953e1e7e7083a0100e22b8e47211cf686;hpb=b7899bb121c496f95f3d6f071bc38e493f15370b;p=chaz%2Ftar diff --git a/doc/tar.texi b/doc/tar.texi index 9a8b171..abc81df 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -5430,9 +5430,32 @@ UID of the file owner. GID of the file owner. @end table -In addition to these variables, @env{TAR_VERSION} contains the +Additionally, the following variables contain information about +tar mode and the archive being processed: + +@table @env +@vrindex TAR_VERSION, to-command environment +@item TAR_VERSION @GNUTAR{} version number. +@vrindex TAR_ARCHIVE, to-command environment +@item TAR_ARCHIVE +The name of the archive @command{tar} is processing. + +@vrindex TAR_BLOCKING_FACTOR, to-command environment +@item TAR_BLOCKING_FACTOR +Current blocking factor (@pxref{Blocking}. + +@vrindex TAR_VOLUME, to-command environment +@item TAR_VOLUME +Ordinal number of the volume @command{tar} is processing. + +@vrindex TAR_FORMAT, to-command environment +@item TAR_FORMAT +Format of the archive being processed. @xref{Formats}, for a complete +list of archive format names. +@end table + If @var{command} exits with a non-0 status, @command{tar} will print an error message similar to the following: