_filedir*: Add link to bash-bug discussion about complete -X case sensitivity.
This commit is contained in:
parent
b202bc60f6
commit
8b45b345ce
@ -633,6 +633,7 @@ _filedir()
|
|||||||
|
|
||||||
if [[ "$1" != -d ]]; then
|
if [[ "$1" != -d ]]; then
|
||||||
# Munge xspec to contain uppercase version too
|
# Munge xspec to contain uppercase version too
|
||||||
|
# http://thread.gmane.org/gmane.comp.shells.bash.bugs/15294/focus=15306
|
||||||
xspec=${1:+"!*.@($1|${1^^})"}
|
xspec=${1:+"!*.@($1|${1^^})"}
|
||||||
toks+=( $( compgen -f -X "$xspec" -- $quoted ) )
|
toks+=( $( compgen -f -X "$xspec" -- $quoted ) )
|
||||||
fi
|
fi
|
||||||
@ -1722,6 +1723,7 @@ _filedir_xspec()
|
|||||||
))
|
))
|
||||||
|
|
||||||
# Munge xspec to contain uppercase version too
|
# Munge xspec to contain uppercase version too
|
||||||
|
# http://thread.gmane.org/gmane.comp.shells.bash.bugs/15294/focus=15306
|
||||||
eval xspec="${xspec}"
|
eval xspec="${xspec}"
|
||||||
local matchop=!
|
local matchop=!
|
||||||
if [[ $xspec == !* ]]; then
|
if [[ $xspec == !* ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user