Merge pull request #1875 from NoahGorny/fix-alias-completion
plugins: alias-completion: Revert back to read without -r
This commit is contained in:
@@ -49,7 +49,7 @@ function alias_completion {
|
||||
# (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
|
||||
# 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
|
||||
if [[ ! " ${completions[*]} " =~ $alias_cmd ]]; then
|
||||
|
||||
Reference in New Issue
Block a user