_command_offset: Properly quote arguments of eval (Alioth: #313499).
parent
b515b0dd38
commit
2e975278c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue