plugins: alias-completion: Revert back to read without -r

pull/1875/head
Noah Gorny 2021-04-22 20:38:30 +03:00
parent 7b8dbd39bc
commit 1b7448bc9d
1 changed files with 1 additions and 1 deletions

View File

@ -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