Skip to content

Commit

Permalink
fix: bash completion escape
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 13, 2024
1 parent 6cb920f commit ce80f20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/assets/completions/usage.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3489,7 +3489,7 @@ _usage() {
local cur prev words cword was_split comp_args
_comp_initialize -n : -- "$@" || return
# shellcheck disable=SC2207
_comp_compgen -- -W "$(usage complete-word --shell bash -s "${spec_variable}" --cword="$cword" -- "${words[@]}")"
_comp_compgen -- -W "$(usage complete-word --shell bash -s "${_usage_spec_usage}" --cword="$cword" -- "${words[@]}")"
_comp_ltrim_colon_completions "$cur"
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion lib/src/complete/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ __USAGE_EOF__"#,
local cur prev words cword was_split comp_args
_comp_initialize -n : -- "$@" || return
# shellcheck disable=SC2207
_comp_compgen -- -W "$(usage complete-word --shell bash -s "${{spec_variable}}" --cword="$cword" -- "${{words[@]}}")"
_comp_compgen -- -W "$(usage complete-word --shell bash -s "${{{spec_variable}}}" --cword="$cword" -- "${{words[@]}}")"
_comp_ltrim_colon_completions "$cur"
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
Expand Down

0 comments on commit ce80f20

Please sign in to comment.