Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "login" shell
- X-seq: zsh-users 2465
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Bek Oberin <gossamer@xxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: "login" shell
- Date: Sat, 24 Jul 1999 03:01:22 +0000
- In-reply-to: <19990724104134.J1881@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990724104134.J1881@xxxxxxxxxxxxxx>
On Jul 24, 10:41am, Bek Oberin wrote:
} Subject: "login" shell
}
} What does the -l argument to zsh do?
It sets the LOGIN option, which causes zsh to source the /etc/zprofile,
~/.zprofile, /etc/zlogin, and ~/.zlogin files at startup, and if the
shell is also interactive, to source the ~/.zlogout file at exit.
Hmm, it's probably a bug that the shell need only be a login shell to
source the zlogin files, but must be both a login shell and interactive
to source the zlogout files. Nevertheless, that's the way it's been for
a very long time.
} Not sure I understand the difference between a shell and a
} "login shell".
There isn't any other difference between a shell and a login shell.
} Also, does zsh update wtmp/utmp files on login, or is this the
} getty's job?
Yes, that's the job of whatever process starts zsh; usually getty (more
accurately, /bin/login as started from getty), but sometimes "xterm -ls"
or the like.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author