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

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



Andrej Borsenkow wrote:

> 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"

It's a copy of the interactive shell, a subshell. It doesn't read any
init files whatsoever.

Hm, but maybe we should turn off the option in subshells. (And probably 
other options, too?)


Non-interactive shells do things like running shell scripts (`#!.../zsh').


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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