mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 17:00:32 +02:00
47883: _awk: support gawk ver.5
This commit is contained in:
parent
8f42ecd8ee
commit
93c4cc0d8f
2 changed files with 6 additions and 2 deletions
|
|
@ -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>
|
2021-01-27 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* 47873: Completion/Base/Core/_main_complete,
|
* 47873: Completion/Base/Core/_main_complete,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#compdef awk gawk nawk
|
#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.
|
# gawk's options '-W ...' (such as '-W help') are not supported.
|
||||||
# gawk3 has some synonyms for long options (e.g., --compat is a synonym
|
# 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 opt_args
|
||||||
local -a 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=(
|
args=(
|
||||||
{-F+,--field-separator}'[define input field separator by extended regex]:extended regular expression:'
|
{-F+,--field-separator}'[define input field separator by extended regex]:extended regular expression:'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue