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

Re: PATCH: completions for su and implicit fg/bg



I wrote:

> This allows `compset -q' on unquoted words -- almost. There is a
> problem when the match contains characters that have to be quoted. In
> such cases the match should be quoted twice (`a b' should be inserted
> as `a\\\ b'), but currently the completion code is far from being
> prepared for such double-quoting and I'm seeing to much places where
> changes are needed for a quick patch.

I've been thinking some more about this... This can get pretty ugly
when we have multiple calls to `compset -q' for the same word. In such 
cases we would have to keep track of the number of calls (the nesting
level) and then quote the words put into the command line n times. Of
course the results may become almost unreadable and it would require
changes in several parts of the code.

Hm. Automatically putting such strings in quotes is probably easier
but otherwise not much better. Does anybody see a better solution?
Should we just give up and make `compset -q' work only on quoted
strings again? Any other suggestions?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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