Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: _values does not quote inserted matches



> On Apr 14, 12:38am, Borsenkow Andrej wrote:
> } Subject: _values does not quote inserted matches
> }
> } note, that match inserted into command line is not quoted that makes
it
> } impossible to complete more than one value.
> 
> The problem is this stuff at lines 54-58 of _values:
> 
>       if [[ ${#noargs}+${#args}+${#opts} -ne 1 ]] && compvalues -s
sep; then
>         sep=( "-qQS" "$sep" )
>       else
>         sep=()
>       fi
> 
> I don't know why the Q is included on line 55?  It seems to all work
OK if
> I take it out.
> 

I'd like to here Sven's comment on it. Sven, are we expected to pass
fully quoted strings to _values (in this case, where is it documented?)
or is _value expected to behave just like most other completion
functions, quoting inserted strings automatically?

-andrej



Messages sorted by: Reverse Date, Date, Thread, Author