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]}
|
||||
|
||||
case $prev in
|
||||
-@(d|-device))
|
||||
-d|--device)
|
||||
_bluetooth_devices
|
||||
return 0;
|
||||
;;
|
||||
|
@ -159,7 +159,7 @@ _sync_members()
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||
return 0
|
||||
;;
|
||||
-@(d|-file))
|
||||
-d|--file)
|
||||
_filedir
|
||||
return 0
|
||||
;;
|
||||
@ -396,7 +396,7 @@ _arch()
|
||||
COMPREPLY=( $( compgen -W 'y n' -- "$cur") )
|
||||
return 0
|
||||
;;
|
||||
-@(d|-file))
|
||||
-d|--file)
|
||||
_filedir
|
||||
return 0
|
||||
;;
|
||||
|
@ -226,7 +226,7 @@ _openssl()
|
||||
-CAcreateserial -CAserial -text -C -md2 -md5 -sha1 \
|
||||
-mdc2 -clrext -extfile -extensions -engine'
|
||||
;;
|
||||
@(md5|md4|md2|sha1|sha|mdc2|ripemd160))
|
||||
md5|md4|md2|sha1|sha|mdc2|ripemd160)
|
||||
options='-c -d'
|
||||
;;
|
||||
esac
|
||||
|
@ -9,7 +9,7 @@ _strace()
|
||||
offset=0
|
||||
for (( i=1; i <= COMP_CWORD; i++ )); do
|
||||
case ${COMP_WORDS[$i]} in
|
||||
-@(o|e|p))
|
||||
-o|-e|-p)
|
||||
i=$((i+1))
|
||||
continue
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user