From: "Zefram" <zefram@tao.co.uk>
To: sweth@astaroth.nit.gwu.edu (Sweth Chandramouli)
Cc: zsh-users@math.gatech.edu
Subject: Re: Re: init files
Date: Mon, 10 Aug 1998 10:13:13 +0100 (BST) [thread overview]
Message-ID: <199808100913.KAA28070@diamond.tao.co.uk> (raw)
In-Reply-To: <19980809210204.33286@astaroth.nit.gwu.edu> 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
prev parent reply other threads:[~1998-08-10 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-09 19:08 Sweth Chandramouli
1998-08-09 22:04 ` Bart Schaefer
1998-08-10 1:02 ` Sweth Chandramouli
1998-08-10 3:51 ` Bart Schaefer
1998-08-15 17:24 ` Bart Schaefer
1998-08-10 9:13 ` Zefram [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199808100913.KAA28070@diamond.tao.co.uk \
--to=zefram@tao.co.uk \
--cc=sweth@astaroth.nit.gwu.edu \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).