diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-07 20:29:49 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-05-16 18:28:26 +0200 |
| commit | 3c9f75bd17d8a8b208fb7e76be78a0b88f2dc925 (patch) | |
| tree | 56c31a075616a179ce9d2331793d68fcc0d7e6d7 | |
| parent | 54530: Fix typo in default value for avoid-completer (diff) | |
| download | zsh-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"
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | Completion/BSD/Command/_kdump | 2 | ||||
| -rw-r--r-- | Completion/BSD/Command/_ktrace | 2 | ||||
| -rw-r--r-- | Completion/Linux/Command/_ipset | 4 | ||||
| -rw-r--r-- | Completion/Linux/Command/_iptables | 6 | ||||
| -rw-r--r-- | Completion/Unix/Command/_darcs | 2 | ||||
| -rw-r--r-- | Completion/Unix/Command/_ln | 2 | ||||
| -rw-r--r-- | Completion/Unix/Command/_mv | 2 | ||||
| -rw-r--r-- | Completion/Unix/Command/_rm | 2 | ||||
| -rw-r--r-- | Completion/Unix/Command/_rmdir | 2 |
10 files changed, 20 insertions, 12 deletions
@@ -1,5 +1,13 @@ 2026-05-16 Mikael Magnusson <mikachu@gmail.com> + * 54531: Completion/BSD/Command/_kdump, + Completion/BSD/Command/_ktrace, Completion/Linux/Command/_ipset, + Completion/Linux/Command/_iptables, + Completion/Unix/Command/_darcs, Completion/Unix/Command/_ln, + Completion/Unix/Command/_mv, Completion/Unix/Command/_rm, + Completion/Unix/Command/_rmdir: completers: remove spurious ; + in "case $foo; in" + * 54530: Completion/Base/Completer/_all_matches, Doc/Zsh/compsys.yo: Fix typo in default value for avoid-completer diff --git a/Completion/BSD/Command/_kdump b/Completion/BSD/Command/_kdump index e5c7c4cce..45fe77137 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 9613ba2bf..99dc23d1a 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 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' diff --git a/Completion/Unix/Command/_darcs b/Completion/Unix/Command/_darcs index 74734711d..73d6b6b18 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 05c89bac2..75e63514a 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 cc33819b9..707f848c5 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 cc2e456b5..4575e4dc4 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 029fa5b85..deb244abb 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+=( |
