Merge pull request #1875 from NoahGorny/fix-alias-completion

plugins: alias-completion: Revert back to read without -r
pull/1876/head
Noah Gorny 2021-04-23 17:05:17 +03:00 committed by GitHub
commit b8da4cb68c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
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