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

Re: When should interactive option be set/.zshrc read?



> I was sure, that my .zshrc was read only by interactice zsh, but
> 
> bor@itsrm2% print $options[interactive]
> on <= correct
> bor@itsrm2% : | (print $options[interactive])
> on <= ?? I doubt, this shell can be considered "interactive"

This is a completely different matter.  The subshell inherits everything
from the parent shell after the fork; it never re-initialiases.  It does
unset the options MONITOR and USEZLE, but not INTERACTIVE, for the
subshell, however.   One might have thought that it would either change all
three or none.  In particular, the effect of claiming to be interactive but
not using ZLE looks a bit weird.  Unless there is some standard behind
this?

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



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