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

Re: zle options (was Re: PATCH: highlight pasted text)



On 25 Jul, Bart wrote:
> }
> } Yes, I think that is preferable. You might want zle -U - "$KEYS" just in
> } case the next key is -, however.
> 
> Wow, so incremental-complete-word has had a bug all these years.
> 
> What's the point of allowing other options after -U?  Just a side-effect
> of using the standard option parsing mechanism?  There's no sensible
> combination of other options with -U (or with -K or -M or ...), they
> all just generate "too many arguments" or "incompatible" errors.

It would be possible to fix this without losing the standard option
parsing mechanism by making the argument an argument to -U rather than
one of the standard arguments. So a colon would be added after U where
the builtin is defined in zle_main.c.

Only problem is that it would break any case where someone has done
zle -U - "$KEYS"

Oliver



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