plugins: alias-completion: Revert back to read without -r
parent
7b8dbd39bc
commit
1b7448bc9d
|
|
@ -49,7 +49,7 @@ function alias_completion {
|
||||||
# (leveraging that eval errs out if $alias_args contains unquoted shell metacharacters)
|
# (leveraging that eval errs out if $alias_args contains unquoted shell metacharacters)
|
||||||
eval "local alias_arg_words; alias_arg_words=($alias_args)" 2> /dev/null || continue
|
eval "local alias_arg_words; alias_arg_words=($alias_args)" 2> /dev/null || continue
|
||||||
# avoid expanding wildcards
|
# avoid expanding wildcards
|
||||||
read -ra alias_arg_words <<< "$alias_args"
|
read -a alias_arg_words <<< "$alias_args"
|
||||||
|
|
||||||
# skip alias if there is no completion function triggered by the aliased command
|
# skip alias if there is no completion function triggered by the aliased command
|
||||||
if [[ ! " ${completions[*]} " =~ $alias_cmd ]]; then
|
if [[ ! " ${completions[*]} " =~ $alias_cmd ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue