diff options
author | wr7 | 2024-02-24 02:54:40 +0000 |
---|---|---|
committer | GitHub | 2024-02-24 02:54:40 +0000 |
commit | 38484f33e5298b2764eb9afd3bf6a60f1facc260 (patch) | |
tree | 14d578d791bd8ba2793021ff1170d257d2a9bff6 /contrib | |
parent | 03623f2f407d592c38d21e085ae1fb2e1aa1ea22 (diff) |
Completely fix bash autocomplete handling of filenames with spaces (#9708)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/hx.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/completion/hx.bash b/contrib/completion/hx.bash index 6ef0329e..62ca029b 100644 --- a/contrib/completion/hx.bash +++ b/contrib/completion/hx.bash @@ -8,14 +8,14 @@ _hx() { case "$3" in -g | --grammar) - COMPREPLY="$(compgen -W "fetch build" -- $2)" + COMPREPLY="$(compgen -W 'fetch build' -- $2)" ;; --health) local languages=$(hx --health |tail -n '+7' |awk '{print $1}' |sed 's/\x1b\[[0-9;]*m//g') - COMPREPLY="$(compgen -W "$languages" -- $2)" + COMPREPLY="$(compgen -W """$languages""" -- $2)" ;; *) - COMPREPLY="$(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config --log" -- $2)" + COMPREPLY="$(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config --log" -- """$2""")" ;; esac |