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

Re: Re: init files



Sweth Chandramouli wrote:
>	i totally misread the part about changing interactive (too many hours
>staring at a screen, i guess), and my shell is defined as a login one because
>its argv[0] is `-zsh'.  i assumed it didn't because of the info in the faq on
>changing your shell, which mentioned linking it to -zsh; echo $0 shows that
>i am running -zsh, even though i never made that link.  does login somehow
>invoke the shell and pass it a modified argv[0]?

Yes.  login always adds the "-" when invoking the user's shell.

>secondly, is there any way to ensure that an action will be taken for all
>users upon logout?

Yes.  Modify login to invoke the command when the login shell terminates.
Any method based on the user's shell performing the action can be
trivially circumvented.

-zefram



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