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

Re: setopt returns both "interactive and login"




On Jun 26, 2006, at 2:14 PM, Michael Hernandez wrote:

On Jun 26, 2006, at 1:56 PM, Timothy Stone wrote:


On Jun 26, 2006, at 1:34 PM, Peter Stephenson wrote:

Timothy Stone wrote:
Can my shell be both 'interactive' and 'login' at the same time?

Yes, that's the normal case for a login shell.

Hmmm... I'm beginning to understand something is occurring behind the scenes here... the *NIX /login/ utility.

So, when I open a new terminal window, with /insert favorite terminal application here/, the /login/ utility is invoked and I get a *login* shell, this is *interactive*. Following that, I request a new shell at the command line, barring the /-l/ switch, I get a new, but /interactive/ shell:
Am I on the right path here?


The "user friendly user guide" and the book "From Bash to Z Shell" both cover this, and are both very helpful (the Bash to Z Shell book especially, if you want to see comparisons between shells).

I have the latter, so I may have missed something in the text. I'll take a peek at the /User Friendly User Guide/ as a supplement.

Peter, just saw your reply. Thanks. (No need to plug the book. Excellent material!) I'm just trying all of this out in a real world environment and syncing my mental expectations with the actual practice of it.

Many thanks!
Tim


Hope this helps!

Mike



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