summaryrefslogtreecommitdiff
path: root/share/spack/bash
diff options
context:
space:
mode:
authorlpoirel <louis.poirel@gmail.com>2022-04-29 01:24:10 +0200
committerGitHub <noreply@github.com>2022-04-28 23:24:10 +0000
commit9e6298569eabdbcbddf3581e416b6008bcd273ee (patch)
tree0ab6f1037fa7cd23eb03a530e41739fc7a42e268 /share/spack/bash
parentad0430f4634a065eb3df35a3ebc449635d861c03 (diff)
downloadspack-9e6298569eabdbcbddf3581e416b6008bcd273ee.tar.gz
spack-9e6298569eabdbcbddf3581e416b6008bcd273ee.tar.bz2
spack-9e6298569eabdbcbddf3581e416b6008bcd273ee.tar.xz
spack-9e6298569eabdbcbddf3581e416b6008bcd273ee.zip
Delocalize type output for bash completion (#30360)
Diffstat (limited to 'share/spack/bash')
-rwxr-xr-xshare/spack/bash/spack-completion.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/bash/spack-completion.in b/share/spack/bash/spack-completion.in
index f9cf846ec5..56c47a8fa4 100755
--- a/share/spack/bash/spack-completion.in
+++ b/share/spack/bash/spack-completion.in
@@ -134,7 +134,7 @@ _bash_completion_spack() {
# Make sure function exists before calling it
local rgx #this dance is necessary to cover bash and zsh regex
rgx="$subfunction.*function.* "
- if [[ "$(type $subfunction 2>&1)" =~ $rgx ]]
+ if [[ "$(LC_ALL=C type $subfunction 2>&1)" =~ $rgx ]]
then
$subfunction
COMPREPLY=($(compgen -W "$SPACK_COMPREPLY" -- "$cur"))