1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-17 21:18:06 +02:00

52013,52014,52015,52016,52017,52018: updates for coreutils option changes

This commit is contained in:
Shohei YOSHIDA 2023-08-06 13:35:20 -07:00 committed by Bart Schaefer
parent aa8e4a0290
commit 40a6265aa3
7 changed files with 26 additions and 0 deletions
ChangeLog
Completion/Unix/Command

View file

@ -1,3 +1,23 @@
2023-08-06 Bart Schaefer <schaefer@zsh.org>
* Shohei YOSHIDA: 52018: Completion/Unix/Command/_wc: latest
coreutils options
* Shohei YOSHIDA: 52017: Completion/Unix/Command/_tr: latest
coreutils options
* Shohei YOSHIDA: 52016: Completion/Unix/Command/_tail: latest
coreutils options
* Shohei YOSHIDA: 52015: Completion/Unix/Command/_env: latest
coreutils options
* Shohei YOSHIDA: 52014: Completion/Unix/Command/_date: latest
coreutils options
* Shohei YOSHIDA: 52013: Completion/Unix/Command/_head: latest
coreutils options
2023-08-01 Peter Stephenson <p.stephenson@samsung.com>
* 52008: Src/pattern.c, Test/D02glob.ztst: Fix bug with branches

View file

@ -19,6 +19,7 @@ if _pick_variant gnu="Free Software Foundation" unix --version; then
$f{-R,--rfc-email}'[display in RFC5322 format]'
$f'--rfc-3339=-[display in RFC 3339 format]:precision:(date seconds ns)'
'(-u --utc --universal)'{-u,--utc,--universal}'[display or set time in UTC]'
'--resolution[output the available resolution of timestamps]'
'(- :)--help[output help and exit]'
'(- :)--version[output version info and exit]'
)

View file

@ -9,6 +9,7 @@ case $variant in
(( $#words > 2 )) && ign='!'
args=(
'(-)'{-i,--ignore-environment}'[start with empty environment]'
'(-0 --null)'{-0,--null}'[end each output line with NUL, not newline]'
'(--ignore-environment -i --help --version)*'{-u+,--unset=}'[remove variable from the environment]:env var to remove:_parameters -g "*export*"'
'(-C --chdir)'{-C+,--chdir=}'[change working directory]:directory:_directories'
'(-S --split-string)'{-S+,--split-string=}'[perform word splitting]:string to split'

View file

@ -9,6 +9,7 @@ if _pick_variant gnu=GNU unix --version; then
'(-n --lines -c --bytes)'{-n+,--lines=}'[print the first (or with -, all but the last) specified lines]:number of lines:->number'
'(-q --quiet --silent -v --verbose)'{-q,--quiet,--silent}'[never print headers giving file names]'
'(-q --quiet --silent -v --verbose)'{-v,--verbose}'[always print headers giving file names]'
'(-z --zero-terminated)'{-z,--zero-terminated}'[line delimiter is NUL, not newline]'
'(- *)--help[display help and exit]'
'(- *)--version[output version information and exit]'
)

View file

@ -16,6 +16,7 @@ if _pick_variant gnu=GNU unix --version; then
'(-q --quiet --silent -v --verbose)'{-q,--quiet,--silent}'[never output headers giving file names]'
'(-q --quiet --silent -v --verbose)'{-v,--verbose}'[always output headers giving file names]'
'--retry[keep trying to open a file even when it becomes inaccessible]'
'(-z --zero-terminated)'{-z,--zero-terminated}'[line delimiter is NUL, not newline]'
'(- *)--help[display help and exit]'
'(- *)--version[output version information and exit]'
)

View file

@ -16,6 +16,7 @@ case $variant in
'(-c -C --complement)'{-c,-C,--complement}"${descr[-c]}"
'(-d --delete 2)'{-d,--delete}"${descr[-d]}"
'(-s --squeeze-repeats)'{-s,--squeeze-repeats}"${descr[-s]}"
'(-t --truncate-set1)'{-t,--truncate-set1}'[first truncate ARRAY1 to length of ARRAY2]'
'(- 1 2)--help[display help information]'
'(- 1 2)--version[display version information]'
)

View file

@ -13,6 +13,7 @@ if _pick_variant gnu=GNU unix --version; then
args+=(
'(*)--files0-from=[read NUL-terminated file list from specified file]:file:_files'
'(-L --max-line-length)'{-L,--max-line-length}'[print longest line lengths]'
'--total=[when to print a line with total counts]:when:(auto always only never)'
)
else
args=( -A "-*" "${(@)args:#(|\(*\))(|\*)--*}" )