Delocalize type output for bash completion (#30360)
This commit is contained in:
parent
ad0430f463
commit
9e6298569e
@ -134,7 +134,7 @@ _bash_completion_spack() {
|
|||||||
# Make sure function exists before calling it
|
# Make sure function exists before calling it
|
||||||
local rgx #this dance is necessary to cover bash and zsh regex
|
local rgx #this dance is necessary to cover bash and zsh regex
|
||||||
rgx="$subfunction.*function.* "
|
rgx="$subfunction.*function.* "
|
||||||
if [[ "$(type $subfunction 2>&1)" =~ $rgx ]]
|
if [[ "$(LC_ALL=C type $subfunction 2>&1)" =~ $rgx ]]
|
||||||
then
|
then
|
||||||
$subfunction
|
$subfunction
|
||||||
COMPREPLY=($(compgen -W "$SPACK_COMPREPLY" -- "$cur"))
|
COMPREPLY=($(compgen -W "$SPACK_COMPREPLY" -- "$cur"))
|
||||||
|
@ -134,7 +134,7 @@ _bash_completion_spack() {
|
|||||||
# Make sure function exists before calling it
|
# Make sure function exists before calling it
|
||||||
local rgx #this dance is necessary to cover bash and zsh regex
|
local rgx #this dance is necessary to cover bash and zsh regex
|
||||||
rgx="$subfunction.*function.* "
|
rgx="$subfunction.*function.* "
|
||||||
if [[ "$(type $subfunction 2>&1)" =~ $rgx ]]
|
if [[ "$(LC_ALL=C type $subfunction 2>&1)" =~ $rgx ]]
|
||||||
then
|
then
|
||||||
$subfunction
|
$subfunction
|
||||||
COMPREPLY=($(compgen -W "$SPACK_COMPREPLY" -- "$cur"))
|
COMPREPLY=($(compgen -W "$SPACK_COMPREPLY" -- "$cur"))
|
||||||
|
Loading…
Reference in New Issue
Block a user