summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-03-16 22:12:48 +0100
committerOliver Kiddle <opk@zsh.org>2023-03-16 22:12:48 +0100
commitea229be4cfb6a734938648df4322fc4473e1712e (patch)
tree0e344de8b305851277c7cc255441344e7fbcfa11
parent4b7a9fd0ecb750646cac76c41383f8391cd0fdd9 (diff)
downloadzsh-ea229be4cfb6a734938648df4322fc4473e1712e.tar.gz
zsh-ea229be4cfb6a734938648df4322fc4473e1712e.zip
51581: update completions to cover changes in OpenBSD 7.2
-rw-r--r--ChangeLog7
-rw-r--r--Completion/BSD/Command/_fw_update6
-rw-r--r--Completion/BSD/Command/_rcctl2
-rw-r--r--Completion/Unix/Command/_grep3
-rw-r--r--Completion/Unix/Command/_netstat1
-rw-r--r--Completion/Unix/Command/_ps2
6 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index f16bd7811..1c87f827b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-03-16 Oliver Kiddle <opk@zsh.org>
+
+ * 51581: Completion/BSD/Command/_fw_update,
+ Completion/BSD/Command/_rcctl, Completion/Unix/Command/_grep,
+ Completion/Unix/Command/_netstat, Completion/Unix/Command/_ps:
+ update completions to cover changes in OpenBSD 7.2
+
2023-03-14 Bart Schaefer <schaefer@zsh.org>
* 51573: Src/builtin.c: additional "typset -p -m" fix for namespaces
diff --git a/Completion/BSD/Command/_fw_update b/Completion/BSD/Command/_fw_update
index b01749f3f..84b5f808d 100644
--- a/Completion/BSD/Command/_fw_update
+++ b/Completion/BSD/Command/_fw_update
@@ -3,8 +3,10 @@
_arguments -s -S -A "-*" \
'(*)-a[install or update firmware for all drivers]' \
'-d[delete drivers instead of adding them]' \
- '-i[display information]' \
+ '-F[download firmware only]' \
'-n[dry run]' \
- '-p[use the firmware at specified path]:path:' \
+ '-p+[use the firmware at specified path]: : _alternative
+ "urls\:url\:_urls"
+ "directories\:path\:_directories"' \
'*-v[verbose output]' \
'(-a)*:driver:'
diff --git a/Completion/BSD/Command/_rcctl b/Completion/BSD/Command/_rcctl
index 6cfebf420..98e4f9846 100644
--- a/Completion/BSD/Command/_rcctl
+++ b/Completion/BSD/Command/_rcctl
@@ -3,7 +3,7 @@
local context state line
local -a actions lsarg subcmds variables
-actions=(check reload restart start stop)
+actions=(configtest check reload restart start stop)
subcmds=(disable enable get getdef ls order set)
variables=(class flags status timeout user)
lsarg=(
diff --git a/Completion/Unix/Command/_grep b/Completion/Unix/Command/_grep
index 2dcbff4a3..0f1e712fd 100644
--- a/Completion/Unix/Command/_grep
+++ b/Completion/Unix/Command/_grep
@@ -89,7 +89,7 @@ case $variant:$OSTYPE in
;|
gpl2:(freebsd|darwin)*)
arguments+=(
- '(--null --no-filename -h)--null[print 0 byte after each filename]'
+ '(--no-filename -h)--null[print 0 byte after each filename]'
'(-Z --decompress -J --bz2decompress)'{-J,--bz2decompress}"[decompress bzip2'ed input before searching]"
'(-Z --decompress -J --bz2decompress)'{-Z,--decompress}"[decompress gzip'ed input before searching]"
)
@@ -129,6 +129,7 @@ case $variant:$OSTYPE in
arguments=(
${(M)arguments:#((#s)|*\))--(context|binary-files|line-buffered|label|max-count)*}
${${arguments:#((#s)|*\))(\*|)-[d-]*}/\)-r/\)-R}
+ '(-h)--null[print 0 byte after each filename]'
"-U[search binary files but don't print them]"
'-Z[behave as zgrep]'
)
diff --git a/Completion/Unix/Command/_netstat b/Completion/Unix/Command/_netstat
index 67133dc6c..8016b2475 100644
--- a/Completion/Unix/Command/_netstat
+++ b/Completion/Unix/Command/_netstat
@@ -280,7 +280,6 @@ case $OSTYPE in
'-c+[show specified number of updates, then exit]:count'
'-e[show only the number of errors on the interface]'
'-q[only show interfaces that have seen packets]'
- '-t[show current value of the watchdog timer function]'
)
statistics+=( $popt '-r[display routing statistics]' )
groups+=( -n$nopt )
diff --git a/Completion/Unix/Command/_ps b/Completion/Unix/Command/_ps
index 9b54cbcc6..905309a12 100644
--- a/Completion/Unix/Command/_ps
+++ b/Completion/Unix/Command/_ps
@@ -105,6 +105,7 @@ case $OSTYPE in
bsdarg+=( 'M[extract values from specified core]' )
;|
linux-gnu|netbsd*) bsdarg+=( 'k[specify sort order]' ) ;|
+ linux-gnu|openbsd*) bsd+=( 'f[show process hierarchy]' ) ;|
darwin*|freebsd*)
bsd+=( 'X[skip processes with no controlling terminal]' )
bsdarg+=( '*G[select processes by real group]' )
@@ -188,7 +189,6 @@ case $OSTYPE in
done
bsd+=(
'c[show true command name]'
- 'f[show process hierarchy]'
'h[suppress header]'
'm[show threads after processes]'
'n[numeric output for WCHAN and USER]'