summaryrefslogtreecommitdiffstats
path: root/Completion/Linux/Command
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-05-07 20:29:49 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-05-16 18:28:26 +0200
commit3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925 (patch)
tree56c31a075616a179ce9d2331793d68fcc0d7e6d7 /Completion/Linux/Command
parent54530: Fix typo in default value for avoid-completer (diff)
downloadzsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.tar
zsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.tar.gz
zsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.tar.bz2
zsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.tar.lz
zsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.tar.xz
zsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.tar.zst
zsh-3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925.zip
54531: completers: remove spurious ; in "case $foo; in"
Diffstat (limited to 'Completion/Linux/Command')
-rw-r--r--Completion/Linux/Command/_ipset4
-rw-r--r--Completion/Linux/Command/_iptables6
2 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Linux/Command/_ipset b/Completion/Linux/Command/_ipset
index a40480904..1f29c63ec 100644
--- a/Completion/Linux/Command/_ipset
+++ b/Completion/Linux/Command/_ipset
@@ -45,9 +45,9 @@ hash=( '--hashsize[the initial hash size aligned to a power of 2]:hashsize [1024
'--resize[ratio of increasing hash size after unsuccessful <probes> of double-hashing, altering discouraged]:percent'
)
-case $words[offset+2]; in
+case $words[offset+2] in
-N|--create)
- case $words[offset+4]; in
+ case $words[offset+4] in
bitmap\:ip)
args=( $from_to
'--netmask[store network addresses instead of IP addresses]:CIDR'
diff --git a/Completion/Linux/Command/_iptables b/Completion/Linux/Command/_iptables
index 0a901f0f2..2ac13b481 100644
--- a/Completion/Linux/Command/_iptables
+++ b/Completion/Linux/Command/_iptables
@@ -29,7 +29,7 @@ ropts=(
)
prev=( ${words[1,CURRENT-1]} )
-case ${prev[${prev[(I)-p|--proto|--protocol]}+1]}; in
+case ${prev[${prev[(I)-p|--proto|--protocol]}+1]} in
tcp)
args=(
'--tcp-flags[match based on TCP flags in a packet]: :->tcp-flags: :->tcp-flags'
@@ -46,7 +46,7 @@ case ${prev[${prev[(I)-p|--proto|--protocol]}+1]}; in
icmp) args=( '--icmp-type[match specified ICMP type]:*^!:ICMP type:->icmp-types' ) ;;
esac
-case ${prev[${prev[(I)-j|--jump]}+1]}; in
+case ${prev[${prev[(I)-j|--jump]}+1]} in
DNAT) args+=( '(--to --to-destination)'{--to,--to-destination}':address' ) ;;
DSCP)
args+=(
@@ -91,7 +91,7 @@ typeset -U args
while
(( i=words[(ib.i.)-m|--match]+1 ))
(( i<CURRENT )); do
- case ${words[i]}; in
+ case ${words[i]} in
addrtype)
args+=(
'--src-type[match if the source address is of given type]:type:->address-types'