Supply more information to the --to-command script.
* src/system.c (stat_to_env): Pass information about the current volume in variables TAR_ARCHIVE, TAR_VOLUME, TAR_BLOCKING_FACTOR, TAR_FORMAT. * doc/tar.texi: Document new environment variables. * NEWS: Likewise. * configure.ac: Version number 1.22.91.
This commit is contained in:
25
doc/tar.texi
25
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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user