1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

47883: _awk: support gawk ver.5

This commit is contained in:
Jun-ichi Takimoto 2021-02-01 09:40:34 +09:00
parent 8f42ecd8ee
commit 93c4cc0d8f
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2021-01-20 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 47883: Completion/Unix/Command/_awk: support gawk ver.5
2021-01-27 Peter Stephenson <p.stephenson@samsung.com>
* 47873: Completion/Base/Core/_main_complete,

View file

@ -1,6 +1,6 @@
#compdef awk gawk nawk
# For gawk ver.3 and 4, in addition to POSIX.
# For gawk ver.3 to 5, in addition to POSIX.
#
# gawk's options '-W ...' (such as '-W help') are not supported.
# gawk3 has some synonyms for long options (e.g., --compat is a synonym
@ -14,7 +14,7 @@ local variant curcontext="$curcontext" state state_descr line ret=1
local -A opt_args
local -a args
_pick_variant -r variant gawk4='GNU Awk 4' gawk3='GNU Awk 3' posix --version
_pick_variant -r variant gawk4='GNU Awk [45]' gawk3='GNU Awk 3' posix --version
args=(
{-F+,--field-separator}'[define input field separator by extended regex]:extended regular expression:'