Skip to content

Commit

Permalink
man, shell completion: add --null-output to -x, -t
Browse files Browse the repository at this point in the history
These changes were made automatically via scripts.
  • Loading branch information
gperciva committed Jan 28, 2025
1 parent 8948b6e commit 33b1e5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 2 additions & 0 deletions misc/zsh_completion/_tarsnap
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ _shtab_tarsnap_t_options=(
"--include[process only certain files or directories]:pattern:"
"--iso-dates[print dates as yyyy-mm-dd hh\:mm\:ss]"
"--newer[only add files and dirs newer than ARG]:date:"
"--null-output[output split by NULs instead of newlines]"
"-O[write files to stdout (-x) or stderr (-t)]"
"-P[preserve pathnames]"
"-q[stop after the first selected entry]"
Expand Down Expand Up @@ -782,6 +783,7 @@ _shtab_tarsnap_x_options=(
"--keep-newer-files[do not overwrite newer existing files]"
"-m[do not extract modification time]"
"--newer[only add files and dirs newer than ARG]:date:"
"--null-output[output split by NULs instead of newlines]"
"--numeric-owner[ignore symbolic ownership when restoring]"
"-O[write files to stdout (-x) or stderr (-t)]"
"-o[use the current uid and gid\; requires -p]"
Expand Down
23 changes: 8 additions & 15 deletions tar/tarsnap.1-man.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,6 @@ flag is specified two or more times, the command
line with which
\fB\%tarsnap\fP
was invoked to create each archive is also printed.
.PP
If the
\fB\--null-output\fP
argument is also specified, each archive name will be separated by a single
null character.
If the
\fB\-v\fP
flag is also specified, then the creation time will be separated by two null
characters.
If the
\fB\-v\fP
flag is specified two times, then the arguments in the command line will be
separated by three null characters.
.TP
\fB\--print-stats\fP
Print global statistics concerning the archives stored, and optionally
Expand Down Expand Up @@ -752,8 +739,14 @@ option to
\fBfind\fP(1).
.TP
\fB\--null-output\fP
(list-archives mode only)
Archive names in output are separated by null characters, not by newlines.
(x, t, and list-archives modes only)
Archive names and filenames in output are separated by null characters, not by
newlines.
.PP
If there are multiple fields on a line, they will be separated by two null
characters.
If a command line is printed within one of those fields, each argument will be
separated by three null characters.
.TP
\fB\--numeric-owner\fP
(x mode only)
Expand Down

0 comments on commit 33b1e5f

Please sign in to comment.