Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Re: init files
- X-seq: zsh-users 1717
- From: "Zefram" <zefram@xxxxxxxxx>
- To: sweth@xxxxxxxxxxxxxxxxxxxx (Sweth Chandramouli)
- Subject: Re: Re: init files
- Date: Mon, 10 Aug 1998 10:13:13 +0100 (BST)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <19980809210204.33286@xxxxxxxxxxxxxxxxxxxx> from "Sweth Chandramouli" at Aug 9, 98 09:02:04 pm
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