Various fixes in the documentation
* doc/tar.1: Add missing dots, use plural when necessary, tweak a wording. Remove an incorrect observation, three times. Add some missing articles, correct some formatting, and expand the opaque descriptions of two options. * doc/tar.texi: Drop a stray `cd` command from an example. Correct two cross references, correct the paragraph about the manpage, and unbreak a URL. * src/names.c: Correct and shorten an error message: "non-optional" means "mandatory", but "non-option" is what was meant. And the phrase "in archive create or update mode" was both unneeded and incomplete. * tests/positional01.at: Change expected error text. * tests/positional02.at: Likewise. * tests/positional03.at: Likewise.
This commit is contained in:
committed by
Sergey Poznyakoff
parent
cf16a23945
commit
b3a71dbdb9
78
doc/tar.1
78
doc/tar.1
@@ -22,7 +22,7 @@ tar \- an archiving utility
|
|||||||
[\fBGnSkUWOmpsMBiajJzZhPlRvwo\fR] [\fIARG\fR...]
|
[\fBGnSkUWOmpsMBiajJzZhPlRvwo\fR] [\fIARG\fR...]
|
||||||
.SS UNIX-style usage
|
.SS UNIX-style usage
|
||||||
.sp
|
.sp
|
||||||
\fBtar\fR \fB\-A\fR [\fIOPTIONS\fR] \fB\-f\fR \fIARCHIVE\fR \fIARCHIVE\fR
|
\fBtar\fR \fB\-A\fR [\fIOPTIONS\fR] \fB\-f\fR \fIARCHIVE\fR \fIARCHIVE\fR...
|
||||||
.sp
|
.sp
|
||||||
\fBtar\fR \fB\-c\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
|
\fBtar\fR \fB\-c\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
|
||||||
.sp
|
.sp
|
||||||
@@ -37,7 +37,7 @@ tar \- an archiving utility
|
|||||||
\fBtar\fR \fB\-x\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
|
\fBtar\fR \fB\-x\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
|
||||||
.SS GNU-style usage
|
.SS GNU-style usage
|
||||||
.sp
|
.sp
|
||||||
\fBtar\fR {\fB\-\-catenate\fR|\fB\-\-concatenate\fR} [\fIOPTIONS\fR] \fB\-\-file\fR \fIARCHIVE\fR \fIARCHIVE\fR
|
\fBtar\fR {\fB\-\-catenate\fR|\fB\-\-concatenate\fR} [\fIOPTIONS\fR] \fB\-\-file\fR \fIARCHIVE\fR \fIARCHIVE\fR...
|
||||||
.sp
|
.sp
|
||||||
\fBtar\fR \fB\-\-create\fR [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
|
\fBtar\fR \fB\-\-create\fR [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
|
||||||
.sp
|
.sp
|
||||||
@@ -72,7 +72,7 @@ You can also view the manual using the info mode in
|
|||||||
or find it in various formats online at
|
or find it in various formats online at
|
||||||
.PP
|
.PP
|
||||||
.RS +4
|
.RS +4
|
||||||
.B http://www.gnu.org/software/tar/manual
|
.B https://www.gnu.org/software/tar/manual
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
If any discrepancies occur between this manpage and the
|
If any discrepancies occur between this manpage and the
|
||||||
@@ -95,8 +95,8 @@ In
|
|||||||
the first argument is a cluster of option letters and all subsequent
|
the first argument is a cluster of option letters and all subsequent
|
||||||
arguments supply arguments to those options that require them. The
|
arguments supply arguments to those options that require them. The
|
||||||
arguments are read in the same order as the option letters. Any
|
arguments are read in the same order as the option letters. Any
|
||||||
command line words that remain after all options has been processed
|
command line words that remain after all options have been processed
|
||||||
are treated as non-optional arguments: file or archive member names.
|
are treated as non-option arguments: file or archive member names.
|
||||||
.PP
|
.PP
|
||||||
For example, the \fBc\fR option requires creating the archive, the
|
For example, the \fBc\fR option requires creating the archive, the
|
||||||
\fBv\fR option requests the verbose operation, and the \fBf\fR option
|
\fBv\fR option requests the verbose operation, and the \fBf\fR option
|
||||||
@@ -105,7 +105,7 @@ The following command, written in the traditional style, instructs tar
|
|||||||
to store all files from the directory
|
to store all files from the directory
|
||||||
.B /etc
|
.B /etc
|
||||||
into the archive file
|
into the archive file
|
||||||
.B etc.tar
|
.BR etc.tar ,
|
||||||
verbosely listing the files being archived:
|
verbosely listing the files being archived:
|
||||||
.PP
|
.PP
|
||||||
.EX
|
.EX
|
||||||
@@ -115,15 +115,15 @@ tar cfv etc.tar /etc
|
|||||||
In
|
In
|
||||||
.BR "UNIX " or " short-option style" ,
|
.BR "UNIX " or " short-option style" ,
|
||||||
each option letter is prefixed with a single dash, as in other command
|
each option letter is prefixed with a single dash, as in other command
|
||||||
line utilities. If an option takes argument, the argument follows it,
|
line utilities. If an option takes an argument, the argument follows it,
|
||||||
either as a separate command line word, or immediately following the
|
either as a separate command line word, or immediately following the
|
||||||
option. However, if the option takes an \fBoptional\fR argument, the
|
option. However, if the option takes an \fBoptional\fR argument, the
|
||||||
argument must follow the option letter without any intervening
|
argument must follow the option letter without any intervening
|
||||||
whitespace, as in \fB\-g/tmp/snar.db\fR.
|
whitespace, as in \fB\-g/tmp/snar.db\fR.
|
||||||
.PP
|
.PP
|
||||||
Any number of options not taking arguments can be
|
Any number of options not taking arguments can be
|
||||||
clustered together after a single dash, e.g. \fB\-vkp\fR. Options
|
clustered together after a single dash, e.g. \fB\-vkp\fR. An option
|
||||||
that take arguments (whether mandatory or optional), can appear at
|
that takes an argument (whether mandatory or optional) can appear at
|
||||||
the end of such a cluster, e.g. \fB\-vkpf a.tar\fR.
|
the end of such a cluster, e.g. \fB\-vkpf a.tar\fR.
|
||||||
.PP
|
.PP
|
||||||
The example command above written in the
|
The example command above written in the
|
||||||
@@ -164,17 +164,17 @@ with old options is not encouraged.
|
|||||||
.SS Operation mode
|
.SS Operation mode
|
||||||
The options listed in the table below tell GNU \fBtar\fR what
|
The options listed in the table below tell GNU \fBtar\fR what
|
||||||
operation it is to perform. Exactly one of them must be given.
|
operation it is to perform. Exactly one of them must be given.
|
||||||
Meaning of non-optional arguments depends on the operation mode
|
The meaning of non-option arguments depends on the operation mode
|
||||||
requested.
|
requested.
|
||||||
.TP
|
.TP
|
||||||
\fB\-A\fR, \fB\-\-catenate\fR, \fB\-\-concatenate\fR
|
\fB\-A\fR, \fB\-\-catenate\fR, \fB\-\-concatenate\fR
|
||||||
Append archive to the end of another archive. The arguments are
|
Append archives to the end of another archive. The arguments are
|
||||||
treated as the names of archives to append. All archives must be of
|
treated as the names of archives to append. All archives must be of
|
||||||
the same format as the archive they are appended to, otherwise the
|
the same format as the archive they are appended to, otherwise the
|
||||||
resulting archive might be unusable with non-GNU implementations of
|
resulting archive might be unusable with non-GNU implementations of
|
||||||
\fBtar\fR. Notice also that when more than one archive is given, the
|
\fBtar\fR. Notice also that when more than one archive is given, the
|
||||||
members from archives other than the first one will be accessible in
|
members from archives other than the first one will be accessible in
|
||||||
the resulting archive only if using the \fB\-i\fR
|
the resulting archive only when using the \fB\-i\fR
|
||||||
(\fB\-\-ignore\-zeros\fR) option.
|
(\fB\-\-ignore\-zeros\fR) option.
|
||||||
|
|
||||||
Compressed archives cannot be concatenated.
|
Compressed archives cannot be concatenated.
|
||||||
@@ -218,7 +218,7 @@ There is no short option equivalent for this option.
|
|||||||
.TP
|
.TP
|
||||||
\fB\-u\fR, \fB\-\-update\fR
|
\fB\-u\fR, \fB\-\-update\fR
|
||||||
Append files which are newer than the corresponding copy in the
|
Append files which are newer than the corresponding copy in the
|
||||||
archive. Arguments have the same meaning as with \fB\-c\fR and
|
archive. Arguments have the same meaning as with the \fB\-c\fR and
|
||||||
\fB\-r\fR options. Notice, that newer files don't replace their
|
\fB\-r\fR options. Notice, that newer files don't replace their
|
||||||
old archive copies, but instead are appended to the end of archive.
|
old archive copies, but instead are appended to the end of archive.
|
||||||
The resulting archive can thus contain several members of the
|
The resulting archive can thus contain several members of the
|
||||||
@@ -230,14 +230,13 @@ they specify names of the archive members to be extracted.
|
|||||||
.TP
|
.TP
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-show\-defaults\fR
|
\fB\-\-show\-defaults\fR
|
||||||
Show built-in defaults for various \fBtar\fR options and exit. No
|
Show built-in defaults for various \fBtar\fR options and exit.
|
||||||
arguments are allowed.
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-?\fR, \fB\-\-help
|
\fB\-?\fR, \fB\-\-help
|
||||||
Display a short option summary and exit. No arguments allowed.
|
Display a short option summary and exit.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-usage\fR
|
\fB\-\-usage\fR
|
||||||
Display a list of available options and exit. No arguments allowed.
|
Display a list of available options and exit.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-version\fR
|
\fB\-\-version\fR
|
||||||
Print program version and copyright information and exit.
|
Print program version and copyright information and exit.
|
||||||
@@ -249,16 +248,15 @@ Check device numbers when creating incremental archives (default).
|
|||||||
.TP
|
.TP
|
||||||
\fB\-g\fR, \fB\-\-listed\-incremental\fR=\fIFILE\fR
|
\fB\-g\fR, \fB\-\-listed\-incremental\fR=\fIFILE\fR
|
||||||
Handle new GNU-format incremental backups. \fIFILE\fR is the name of
|
Handle new GNU-format incremental backups. \fIFILE\fR is the name of
|
||||||
a \fBsnapshot file\fR, where tar stores additional information which
|
a \fBsnapshot file\fR, where \fBtar\fR stores additional information which
|
||||||
is used to decide which files changed since the previous incremental
|
is used to decide which files changed since the previous incremental
|
||||||
dump and, consequently, must be dumped again. If \fIFILE\fR does not
|
dump and, consequently, must be dumped again. If \fIFILE\fR does not
|
||||||
exist when creating an archive, it will be created and all files will
|
exist when creating an archive, it will be created and all files will
|
||||||
be added to the resulting archive (the \fBlevel 0\fR dump). To create
|
be added to the resulting archive (the \fBlevel 0\fR dump). To create
|
||||||
incremental archives of non-zero level \fBN\fR, create a copy of the
|
incremental archives of non-zero level \fBN\fR, you need a copy of the
|
||||||
snapshot file created during the level \fBN-1\fR, and use it as
|
snapshot file created for level \fBN-1\fR, and use it as \fIFILE\fR.
|
||||||
\fIFILE\fR.
|
|
||||||
|
|
||||||
When listing or extracting, the actual contents of \fIFILE\fR is not
|
When listing or extracting, the actual content of \fIFILE\fR is not
|
||||||
inspected, it is needed only due to syntactical requirements. It is
|
inspected, it is needed only due to syntactical requirements. It is
|
||||||
therefore common practice to use \fB/dev/null\fR in its place.
|
therefore common practice to use \fB/dev/null\fR in its place.
|
||||||
.TP
|
.TP
|
||||||
@@ -275,7 +273,7 @@ Handle old GNU-format incremental backups.
|
|||||||
Do not exit with nonzero on unreadable files.
|
Do not exit with nonzero on unreadable files.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-level\fR=\fINUMBER\fR
|
\fB\-\-level\fR=\fINUMBER\fR
|
||||||
Set dump level for created listed-incremental archive. Currently only
|
Set dump level for a created listed-incremental archive. Currently only
|
||||||
\fB\-\-level=0\fR is meaningful: it instructs \fBtar\fR to truncate
|
\fB\-\-level=0\fR is meaningful: it instructs \fBtar\fR to truncate
|
||||||
the snapshot file before dumping, thereby forcing a level 0 dump.
|
the snapshot file before dumping, thereby forcing a level 0 dump.
|
||||||
.TP
|
.TP
|
||||||
@@ -307,7 +305,7 @@ either on the command line or via the \fB\-T\fR option. The default
|
|||||||
Disable the use of some potentially harmful options.
|
Disable the use of some potentially harmful options.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-sparse\-version\fR=\fIMAJOR\fR[.\fIMINOR\fR]
|
\fB\-\-sparse\-version\fR=\fIMAJOR\fR[.\fIMINOR\fR]
|
||||||
Set version of the sparse format to use (implies \fB\-\-sparse\fR).
|
Set which version of the sparse format to use.
|
||||||
This option implies
|
This option implies
|
||||||
.BR \-\-sparse .
|
.BR \-\-sparse .
|
||||||
Valid argument values are
|
Valid argument values are
|
||||||
@@ -315,7 +313,7 @@ Valid argument values are
|
|||||||
.BR 0.1 ", and"
|
.BR 0.1 ", and"
|
||||||
.BR 1.0 .
|
.BR 1.0 .
|
||||||
For a detailed discussion of sparse formats, refer to the \fBGNU Tar
|
For a detailed discussion of sparse formats, refer to the \fBGNU Tar
|
||||||
Manual\fR, appendix \fBD\fR, "\fBSparse Formats\fR". Using \fBinfo\fR
|
Manual\fR, appendix \fBD\fR, "\fBSparse Formats\fR". Using the \fBinfo\fR
|
||||||
reader, it can be accessed running the following command:
|
reader, it can be accessed running the following command:
|
||||||
.BR "info tar 'Sparse Formats'" .
|
.BR "info tar 'Sparse Formats'" .
|
||||||
.TP
|
.TP
|
||||||
@@ -370,7 +368,6 @@ Verify the archive after writing it.
|
|||||||
.SS Output stream selection
|
.SS Output stream selection
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-ignore\-command\-error\fR
|
\fB\-\-ignore\-command\-error\fR
|
||||||
.TP
|
|
||||||
Ignore subprocess exit codes.
|
Ignore subprocess exit codes.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-no\-ignore\-command\-error\fR
|
\fB\-\-no\-ignore\-command\-error\fR
|
||||||
@@ -473,7 +470,7 @@ executing.
|
|||||||
\fB\-\-atime\-preserve\fR[=\fIMETHOD\fR]
|
\fB\-\-atime\-preserve\fR[=\fIMETHOD\fR]
|
||||||
Preserve access times on dumped files, either by restoring the times
|
Preserve access times on dumped files, either by restoring the times
|
||||||
after reading (\fIMETHOD\fR=\fBreplace\fR, this is the default) or by
|
after reading (\fIMETHOD\fR=\fBreplace\fR, this is the default) or by
|
||||||
not setting the times in the first place (\fIMETHOD\fR=\fBsystem\fR)
|
not setting the times in the first place (\fIMETHOD\fR=\fBsystem\fR).
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-delay\-directory\-restore\fR
|
\fB\-\-delay\-directory\-restore\fR
|
||||||
Delay setting modification times and permissions of extracted
|
Delay setting modification times and permissions of extracted
|
||||||
@@ -561,14 +558,16 @@ As a result, each input file owned by \fIOLDUSR\fR will be
|
|||||||
stored in archive with owner name \fINEWUSR\fR and UID \fINEWUID\fR.
|
stored in archive with owner name \fINEWUSR\fR and UID \fINEWUID\fR.
|
||||||
.TP
|
.TP
|
||||||
\fB\-p\fR, \fB\-\-preserve\-permissions\fR, \fB\-\-same\-permissions\fR
|
\fB\-p\fR, \fB\-\-preserve\-permissions\fR, \fB\-\-same\-permissions\fR
|
||||||
extract information about file permissions (default for superuser)
|
Set permissions of extracted files to those recorded in the archive
|
||||||
|
(default for superuser).
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-same\-owner\fR
|
\fB\-\-same\-owner\fR
|
||||||
Try extracting files with the same ownership as exists in the archive
|
Try extracting files with the same ownership as exists in the archive
|
||||||
(default for superuser).
|
(default for superuser).
|
||||||
.TP
|
.TP
|
||||||
\fB\-s\fR, \fB\-\-preserve\-order\fR, \fB\-\-same\-order\fR
|
\fB\-s\fR, \fB\-\-preserve\-order\fR, \fB\-\-same\-order\fR
|
||||||
Sort names to extract to match archive
|
Tell \fBtar\fR that the list of file names to process is sorted in the
|
||||||
|
same order as the files in the archive.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-sort=\fIORDER\fR
|
\fB\-\-sort=\fIORDER\fR
|
||||||
When creating an archive, sort directory entries according to
|
When creating an archive, sort directory entries according to
|
||||||
@@ -742,7 +741,7 @@ end-of-file marker.
|
|||||||
.TP
|
.TP
|
||||||
\fB\-i\fR, \fB\-\-ignore\-zeros\fR
|
\fB\-i\fR, \fB\-\-ignore\-zeros\fR
|
||||||
Ignore zeroed blocks in archive. Normally two consecutive 512-blocks
|
Ignore zeroed blocks in archive. Normally two consecutive 512-blocks
|
||||||
filled with zeroes mean EOF and tar stops reading after encountering
|
filled with zeroes mean EOF and \fBtar\fR stops reading after encountering
|
||||||
them. This option instructs it to read further and is useful when
|
them. This option instructs it to read further and is useful when
|
||||||
reading archives created with the \fB\-A\fR option.
|
reading archives created with the \fB\-A\fR option.
|
||||||
.TP
|
.TP
|
||||||
@@ -1011,7 +1010,7 @@ disables this behavior.
|
|||||||
|
|
||||||
This option affects all \fB\-\-files\-from\fR options that occur after
|
This option affects all \fB\-\-files\-from\fR options that occur after
|
||||||
it in the command line. Its effect is reverted by the
|
it in the command line. Its effect is reverted by the
|
||||||
\fB\-\-no\-verbatim\-files\-from} option.
|
\fB\-\-no\-verbatim\-files\-from\fR option.
|
||||||
|
|
||||||
This option is implied by the \fB\-\-null\fR option.
|
This option is implied by the \fB\-\-null\fR option.
|
||||||
|
|
||||||
@@ -1061,7 +1060,8 @@ Display progress messages every \fIN\fRth record (default 10).
|
|||||||
Run \fIACTION\fR on each checkpoint.
|
Run \fIACTION\fR on each checkpoint.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-clamp\-mtime\fR
|
\fB\-\-clamp\-mtime\fR
|
||||||
Only set time when the file is more recent than what was given with \-\-mtime.
|
Only set time when the file is more recent than what was given with
|
||||||
|
\fB\-\-mtime\fR.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-full\-time\fR
|
\fB\-\-full\-time\fR
|
||||||
Print file time to its full resolution.
|
Print file time to its full resolution.
|
||||||
@@ -1120,14 +1120,14 @@ Verbosely list files processed. Each instance of this option on the
|
|||||||
command line increases the verbosity level by one. The maximum
|
command line increases the verbosity level by one. The maximum
|
||||||
verbosity level is 3. For a detailed discussion of how various
|
verbosity level is 3. For a detailed discussion of how various
|
||||||
verbosity levels affect tar's output, please refer to \fBGNU Tar
|
verbosity levels affect tar's output, please refer to \fBGNU Tar
|
||||||
Manual\fR, subsection 2.5.1 "\fBThe \-\-verbose Option\fR".
|
Manual\fR, subsection 2.5.2 "\fBThe '\-\-verbose' Option\fR".
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-warning\fR=\fIKEYWORD\fR
|
\fB\-\-warning\fR=\fIKEYWORD\fR
|
||||||
Enable or disable warning messages identified by \fIKEYWORD\fR. The
|
Enable or disable warning messages identified by \fIKEYWORD\fR. The
|
||||||
messages are suppressed if \fIKEYWORD\fR is prefixed with \fBno\-\fR
|
messages are suppressed if \fIKEYWORD\fR is prefixed with \fBno\-\fR
|
||||||
and enabled otherwise.
|
and enabled otherwise.
|
||||||
|
|
||||||
Multiple \fB\-\-warning\fR messages accumulate.
|
Multiple \fB\-\-warning\fR options accumulate.
|
||||||
|
|
||||||
Keywords controlling general \fBtar\fR operation:
|
Keywords controlling general \fBtar\fR operation:
|
||||||
.RS
|
.RS
|
||||||
@@ -1267,7 +1267,7 @@ as \fB\-\-no\-same\-owner\fR.
|
|||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
Tar exit code indicates whether it was able to successfully perform
|
Tar's exit code indicates whether it was able to successfully perform
|
||||||
the requested operation, and if not, what kind of error occurred.
|
the requested operation, and if not, what kind of error occurred.
|
||||||
.TP
|
.TP
|
||||||
.B 0
|
.B 0
|
||||||
@@ -1275,9 +1275,9 @@ Successful termination.
|
|||||||
.TP
|
.TP
|
||||||
.B 1
|
.B 1
|
||||||
.I Some files differ.
|
.I Some files differ.
|
||||||
If tar was invoked with the \fB\-\-compare\fR (\fB\-\-diff\fR, \fB\-d\fR)
|
If \fBtar\fR was invoked with the \fB\-\-compare\fR (\fB\-\-diff\fR, \fB\-d\fR)
|
||||||
command line option, this means that some files in the archive differ
|
command line option, this means that some files in the archive differ
|
||||||
from their disk counterparts. If tar was given one of the \fB\-\-create\fR,
|
from their disk counterparts. If \fBtar\fR was given one of the \fB\-\-create\fR,
|
||||||
\fB\-\-append\fR or \fB\-\-update\fR options, this exit code means
|
\fB\-\-append\fR or \fB\-\-update\fR options, this exit code means
|
||||||
that some files were changed while being archived and so the resulting
|
that some files were changed while being archived and so the resulting
|
||||||
archive does not contain the exact copy of the file set.
|
archive does not contain the exact copy of the file set.
|
||||||
@@ -1316,11 +1316,11 @@ Online copies of \fBGNU tar\fR documentation in various formats can be
|
|||||||
found at:
|
found at:
|
||||||
.PP
|
.PP
|
||||||
.in +4
|
.in +4
|
||||||
.B http://www.gnu.org/software/tar/manual
|
.B https://www.gnu.org/software/tar/manual
|
||||||
.SH "BUG REPORTS"
|
.SH "BUG REPORTS"
|
||||||
Report bugs to <bug\-tar@gnu.org>.
|
Report bugs to <bug\-tar@gnu.org>.
|
||||||
.SH COPYRIGHT
|
.SH COPYRIGHT
|
||||||
Copyright \(co 2013-2019 Free Software Foundation, Inc.
|
Copyright \(co 2023 Free Software Foundation, Inc.
|
||||||
.br
|
.br
|
||||||
.na
|
.na
|
||||||
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
||||||
|
|||||||
31
doc/tar.texi
31
doc/tar.texi
@@ -675,7 +675,7 @@ For version 1.12, Daniel Hagerty contributed a great deal of technical
|
|||||||
consulting. In particular, he is the primary author of @ref{Backups}.
|
consulting. In particular, he is the primary author of @ref{Backups}.
|
||||||
|
|
||||||
In July, 2003 @GNUTAR{} was put on CVS at savannah.gnu.org
|
In July, 2003 @GNUTAR{} was put on CVS at savannah.gnu.org
|
||||||
(see @url{http://savannah.gnu.org/projects/tar}), and
|
(see @url{https://savannah.gnu.org/projects/tar}), and
|
||||||
active development and maintenance work has started
|
active development and maintenance work has started
|
||||||
again. Currently @GNUTAR{} is being maintained by Paul Eggert, Sergey
|
again. Currently @GNUTAR{} is being maintained by Paul Eggert, Sergey
|
||||||
Poznyakoff and Jeff Bailey.
|
Poznyakoff and Jeff Bailey.
|
||||||
@@ -3337,7 +3337,7 @@ Same as @option{--format=posix}.
|
|||||||
@opsummary{preserve-order}
|
@opsummary{preserve-order}
|
||||||
@item --preserve-order
|
@item --preserve-order
|
||||||
|
|
||||||
(See @option{--same-order}; @pxref{Reading}.)
|
(See @option{--same-order}; @pxref{Same Order}.)
|
||||||
|
|
||||||
@opsummary{preserve-permissions}
|
@opsummary{preserve-permissions}
|
||||||
@opsummary{same-permissions}
|
@opsummary{same-permissions}
|
||||||
@@ -3427,7 +3427,7 @@ devices. @xref{Device}.
|
|||||||
This option is an optimization for @command{tar} when running on machines with
|
This option is an optimization for @command{tar} when running on machines with
|
||||||
small amounts of memory. It informs @command{tar} that the list of file
|
small amounts of memory. It informs @command{tar} that the list of file
|
||||||
arguments has already been sorted to match the order of files in the
|
arguments has already been sorted to match the order of files in the
|
||||||
archive. @xref{Reading}.
|
archive. @xref{Same Order}.
|
||||||
|
|
||||||
@opsummary{same-owner}
|
@opsummary{same-owner}
|
||||||
@item --same-owner
|
@item --same-owner
|
||||||
@@ -4043,16 +4043,16 @@ itself, containing possibly many programs. The package is currently
|
|||||||
named @samp{tar}, after the name of the main program it
|
named @samp{tar}, after the name of the main program it
|
||||||
contains@footnote{There are plans to merge the @command{cpio} and
|
contains@footnote{There are plans to merge the @command{cpio} and
|
||||||
@command{tar} packages into a single one which would be called
|
@command{tar} packages into a single one which would be called
|
||||||
@code{paxutils}. So, who knows if, one of this days, the
|
@code{paxutils}. So, who knows, one of these days
|
||||||
@option{--version} would not output @w{@samp{tar (@acronym{GNU}
|
@option{--version} might output @w{@samp{tar (@acronym{GNU}
|
||||||
paxutils) 3.2}}.}.
|
paxutils) 3.2}}.}.
|
||||||
|
|
||||||
@cindex Obtaining help
|
@cindex Obtaining help
|
||||||
@cindex Listing all @command{tar} options
|
@cindex Listing all @command{tar} options
|
||||||
@xopindex{help, introduction}
|
@xopindex{help, introduction}
|
||||||
Another thing you might want to do is checking the spelling or meaning
|
Another thing you might want to do is check the spelling or meaning
|
||||||
of some particular @command{tar} option, without resorting to this
|
of some particular @command{tar} option, without resorting to this
|
||||||
manual, for once you have carefully read it. @GNUTAR{}
|
manual, once you have carefully read it. @GNUTAR{}
|
||||||
has a short help feature, triggerable through the
|
has a short help feature, triggerable through the
|
||||||
@option{--help} option. By using this option, @command{tar} will
|
@option{--help} option. By using this option, @command{tar} will
|
||||||
print a usage message listing all available options on standard
|
print a usage message listing all available options on standard
|
||||||
@@ -4092,7 +4092,7 @@ The short help output is quite succinct, and you might have to get
|
|||||||
back to the full documentation for precise points. If you are reading
|
back to the full documentation for precise points. If you are reading
|
||||||
this paragraph, you already have the @command{tar} manual in some
|
this paragraph, you already have the @command{tar} manual in some
|
||||||
form. This manual is available in a variety of forms from
|
form. This manual is available in a variety of forms from
|
||||||
@url{http://www.gnu.org/software/tar/manual}. It may be printed out of the @GNUTAR{}
|
@url{https://www.gnu.org/software/tar/manual}. It may be printed out of the @GNUTAR{}
|
||||||
distribution, provided you have @TeX{} already installed somewhere,
|
distribution, provided you have @TeX{} already installed somewhere,
|
||||||
and a laser printer around. Just configure the distribution, execute
|
and a laser printer around. Just configure the distribution, execute
|
||||||
the command @w{@samp{make dvi}}, then print @file{doc/tar.dvi} the
|
the command @w{@samp{make dvi}}, then print @file{doc/tar.dvi} the
|
||||||
@@ -4103,12 +4103,10 @@ file. Just call @w{@samp{info tar}} or, if you do not have the
|
|||||||
@command{info} program handy, use the Info reader provided within
|
@command{info} program handy, use the Info reader provided within
|
||||||
@acronym{GNU} Emacs, calling @samp{tar} from the main Info menu.
|
@acronym{GNU} Emacs, calling @samp{tar} from the main Info menu.
|
||||||
|
|
||||||
There is currently no @code{man} page for @GNUTAR{}.
|
Since 2014, @GNUTAR{} also has a @code{man} page.
|
||||||
If you observe such a @code{man} page on the system you are running,
|
It briefly explains all the options and operations.
|
||||||
either it does not belong to @GNUTAR{}, or it has not
|
This might be preferable when you don't need any background.
|
||||||
been produced by @acronym{GNU}. Some package maintainers convert
|
But bear in mind that the authoritative source of
|
||||||
@kbd{tar --help} output to a man page, using @command{help2man}. In
|
|
||||||
any case, please bear in mind that the authoritative source of
|
|
||||||
information about @GNUTAR{} is this Texinfo documentation.
|
information about @GNUTAR{} is this Texinfo documentation.
|
||||||
|
|
||||||
@node defaults
|
@node defaults
|
||||||
@@ -5417,7 +5415,6 @@ $ @kbd{tar -tvf jazzfolk.tar}
|
|||||||
We can concatenate these two archives with @command{tar}:
|
We can concatenate these two archives with @command{tar}:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
$ @kbd{cd ..}
|
|
||||||
$ @kbd{tar --concatenate --file=bluesrock.tar jazzfolk.tar}
|
$ @kbd{tar --concatenate --file=bluesrock.tar jazzfolk.tar}
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@@ -7101,8 +7098,8 @@ mainly variable assignments. However, any valid shell construct
|
|||||||
is allowed in this file. Particularly, you may wish to define
|
is allowed in this file. Particularly, you may wish to define
|
||||||
functions within that script (e.g., see @code{RESTORE_BEGIN} below).
|
functions within that script (e.g., see @code{RESTORE_BEGIN} below).
|
||||||
For more information about shell script syntax, please refer to
|
For more information about shell script syntax, please refer to
|
||||||
@url{http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#ta
|
@url{https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html,
|
||||||
g_02, the definition of the Shell Command Language}. See also
|
the definition of the Shell Command Language}. See also
|
||||||
@ref{Top,,Bash Features,bashref,Bash Reference Manual}.
|
@ref{Top,,Bash Features,bashref,Bash Reference Manual}.
|
||||||
|
|
||||||
The shell variables controlling behavior of @code{backup} and
|
The shell variables controlling behavior of @code{backup} and
|
||||||
|
|||||||
@@ -744,7 +744,7 @@ unconsumed_option_report (void)
|
|||||||
{
|
{
|
||||||
struct name_elt *elt;
|
struct name_elt *elt;
|
||||||
|
|
||||||
ERROR ((0, 0, _("The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.")));
|
ERROR ((0, 0, _("The following options were used after non-option arguments. These options are positional and affect only arguments that follow them. Please, rearrange them properly.")));
|
||||||
|
|
||||||
elt = unconsumed_option_tail;
|
elt = unconsumed_option_tail;
|
||||||
while (elt->prev)
|
while (elt->prev)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ dir/A.a
|
|||||||
dir/A.b
|
dir/A.b
|
||||||
dir/B.a
|
dir/B.a
|
||||||
],
|
],
|
||||||
[tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
[tar: The following options were used after non-option arguments. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
||||||
tar: --exclude '*.b' has no effect
|
tar: --exclude '*.b' has no effect
|
||||||
tar: Exiting with failure status due to previous errors
|
tar: Exiting with failure status due to previous errors
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ tar -cf a.tar . -C dir
|
|||||||
./B.a
|
./B.a
|
||||||
],
|
],
|
||||||
[tar: ./a.tar: archive cannot contain itself; not dumped
|
[tar: ./a.tar: archive cannot contain itself; not dumped
|
||||||
tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
tar: The following options were used after non-option arguments. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
||||||
tar: -C 'dir' has no effect
|
tar: -C 'dir' has no effect
|
||||||
tar: Exiting with failure status due to previous errors
|
tar: Exiting with failure status due to previous errors
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ tar -vcf ../a.tar --exclude '*.b' . -C dir --exclude '*.c' | sort
|
|||||||
./dir/A.a
|
./dir/A.a
|
||||||
./dir/B.a
|
./dir/B.a
|
||||||
],
|
],
|
||||||
[tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
[tar: The following options were used after non-option arguments. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
|
||||||
tar: -C 'dir' has no effect
|
tar: -C 'dir' has no effect
|
||||||
tar: --exclude '*.c' has no effect
|
tar: --exclude '*.c' has no effect
|
||||||
tar: Exiting with failure status due to previous errors
|
tar: Exiting with failure status due to previous errors
|
||||||
|
|||||||
Reference in New Issue
Block a user