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

Re: Shell options during completion?



"Benjamin R. Haskell" wrote:
> Are completion functions called with some consistent set of shell 
> options?

It's the set _comp_options you'll find in the compinit function.
Note this doesn't reset the options, it sets only the values given, so
some options set by the user are passed through.  There may be more that
shouldn't be (typically those affecting syntax); if you need some
special behaviour for one function you can "setopt localoptions
<that-option>".

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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