PATCH: completers: remove spurious ; in "case $foo; in"

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
---
 Completion/BSD/Command/_kdump      | 2 +-
 Completion/BSD/Command/_ktrace     | 2 +-
 Completion/Linux/Command/_ipset    | 4 ++--
 Completion/Linux/Command/_iptables | 6 +++---
 Completion/Unix/Command/_darcs     | 2 +-
 Completion/Unix/Command/_ln        | 2 +-
 Completion/Unix/Command/_mv        | 2 +-
 Completion/Unix/Command/_rm        | 2 +-
 Completion/Unix/Command/_rmdir     | 2 +-
 9 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Completion/BSD/Command/_kdump b/Completion/BSD/Command/_kdump
index e5c7c4cce3..45fe771373 100644
--- a/Completion/BSD/Command/_kdump
+++ b/Completion/BSD/Command/_kdump
@@ -37,7 +37,7 @@ local args=(
   '-t[select which tracepoints to display]: :_ktrace_points'
 )
 
-case $OSTYPE; in
+case $OSTYPE in
   freebsd*|netbsd*)
     args+=(
       '(-R -T)-E[display elapsed timestamps]'
diff --git a/Completion/BSD/Command/_ktrace b/Completion/BSD/Command/_ktrace
index 9613ba2bfd..99dc23d1aa 100644
--- a/Completion/BSD/Command/_ktrace
+++ b/Completion/BSD/Command/_ktrace
@@ -13,7 +13,7 @@ local args=(
   '*:: : _normal -p ktrace'
 )
 
-case $OSTYPE; in
+case $OSTYPE in
   openbsd*)
     args+=(
       '-B[process relocations immediately]'
diff --git a/Completion/Linux/Command/_ipset b/Completion/Linux/Command/_ipset
index a404809049..1f29c63ecf 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 0a901f0f27..2ac13b4818 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'
diff --git a/Completion/Unix/Command/_darcs b/Completion/Unix/Command/_darcs
index 74734711d8..73d6b6b18c 100644
--- a/Completion/Unix/Command/_darcs
+++ b/Completion/Unix/Command/_darcs
@@ -20,7 +20,7 @@ if (($CURRENT == 2)); then
   _wanted command expl 'darcs command' \
     compadd -- $( darcs --commands )
 else
-  case "${words[$CURRENT]}"; in
+  case "${words[$CURRENT]}" in
     # If it looks like an URL...
     ht*|ft*)
         _arguments '*:URL:_urls'
diff --git a/Completion/Unix/Command/_ln b/Completion/Unix/Command/_ln
index 05c89bac2e..75e63514ad 100644
--- a/Completion/Unix/Command/_ln
+++ b/Completion/Unix/Command/_ln
@@ -10,7 +10,7 @@ args=(
 )
 
 _pick_variant -r variant -b zsh gnu='(GNU|uutils)' $OSTYPE --version
-case $variant; in
+case $variant in
   gnu)
     opts=()
     args=(
diff --git a/Completion/Unix/Command/_mv b/Completion/Unix/Command/_mv
index cc33819b97..707f848c5b 100644
--- a/Completion/Unix/Command/_mv
+++ b/Completion/Unix/Command/_mv
@@ -3,7 +3,7 @@
 local args variant aopts=( -A '-*' )
 
 _pick_variant -r variant -b zsh gnu='(GNU|uutils)' $OSTYPE --version
-case $variant; in
+case $variant in
   gnu)
     aopts=()
     args=(
diff --git a/Completion/Unix/Command/_rm b/Completion/Unix/Command/_rm
index cc2e456b57..4575e4dc4a 100644
--- a/Completion/Unix/Command/_rm
+++ b/Completion/Unix/Command/_rm
@@ -9,7 +9,7 @@ args=(
   '*:: :->file'
 )
 _pick_variant -r variant -b zsh gnu='(GNU|uutils)' $OSTYPE --version
-case $variant; in
+case $variant in
   gnu)
     opts=()
     args+=(
diff --git a/Completion/Unix/Command/_rmdir b/Completion/Unix/Command/_rmdir
index 029fa5b858..deb244abbf 100644
--- a/Completion/Unix/Command/_rmdir
+++ b/Completion/Unix/Command/_rmdir
@@ -8,7 +8,7 @@ args=(
 )
 
 _pick_variant -r variant -b zsh gnu='(GNU|uutils)' $OSTYPE --version
-case $variant; in
+case $variant in
   gnu)
     aopts=()
     args+=(
-- 
2.38.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.