Avoid extended globbing in case labels per current style guidelines.
This commit is contained in:
parent
b424bfe37b
commit
032483036f
@ -302,7 +302,7 @@ _dfutool()
|
|||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
-@(d|-device))
|
-d|--device)
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
return 0;
|
return 0;
|
||||||
;;
|
;;
|
||||||
|
@ -159,7 +159,7 @@ _sync_members()
|
|||||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-@(d|-file))
|
-d|--file)
|
||||||
_filedir
|
_filedir
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
@ -396,7 +396,7 @@ _arch()
|
|||||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-@(d|-file))
|
-d|--file)
|
||||||
_filedir
|
_filedir
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
@ -226,7 +226,7 @@ _openssl()
|
|||||||
-CAcreateserial -CAserial -text -C -md2 -md5 -sha1 \
|
-CAcreateserial -CAserial -text -C -md2 -md5 -sha1 \
|
||||||
-mdc2 -clrext -extfile -extensions -engine'
|
-mdc2 -clrext -extfile -extensions -engine'
|
||||||
;;
|
;;
|
||||||
@(md5|md4|md2|sha1|sha|mdc2|ripemd160))
|
md5|md4|md2|sha1|sha|mdc2|ripemd160)
|
||||||
options='-c -d'
|
options='-c -d'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -9,7 +9,7 @@ _strace()
|
|||||||
offset=0
|
offset=0
|
||||||
for (( i=1; i <= COMP_CWORD; i++ )); do
|
for (( i=1; i <= COMP_CWORD; i++ )); do
|
||||||
case ${COMP_WORDS[$i]} in
|
case ${COMP_WORDS[$i]} in
|
||||||
-@(o|e|p))
|
-o|-e|-p)
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user