_command_offset: Properly quote arguments of eval (Alioth: #313499).

master
Igor Murzov 2012-01-10 03:48:15 +04:00
parent b515b0dd38
commit 2e975278c5
1 changed files with 1 additions and 1 deletions

View File

@ -1712,7 +1712,7 @@ _command_offset()
else
cspec=${cspec#complete}
cspec=${cspec%%$compcmd}
COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) )
COMPREPLY=( $( eval compgen "$cspec" -- '$cur' ) )
fi
elif [[ ${#COMPREPLY[@]} -eq 0 ]]; then
# XXX will probably never happen as long as completion loader loads