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

Re: _history-complete-older problems with $(



On Jan 14, 11:55am, Sebastian Gniazdowski wrote:
} Subject: Re: _history-complete-older problems with $(
}
} I have one idea. It's generally about detecting a syntax error that
} makes shell word unbound. By appending " x" to shell word and running
} (Z+n+) one can obtain either 1 or 2 elements and first signals a
} syntax error. For such case, SUFFIX would consist only from a space
} delimited part of the regular right part.

That should work, and in fact the completion internals do something
quite similar.



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