Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When should interactive option be set/.zshrc read?
- X-seq: zsh-workers 12753
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: When should interactive option be set/.zshrc read?
- Date: Wed, 6 Sep 2000 14:49:09 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Wed, 6 Sep 2000 16:41:15 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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