zsh-users
 help / color / mirror / code / Atom feed
* "login" shell
@ 1999-07-24  0:41 Bek Oberin
  1999-07-24  3:01 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Bek Oberin @ 1999-07-24  0:41 UTC (permalink / raw)
  To: Zsh Users


What does the -l argument to zsh do?

Not sure I understand the difference between a shell and a
"login shell".

Also, does zsh update wtmp/utmp files on login, or is this the
getty's job?


bekj

-- 
: --Hacker-Neophile-Eclectic-Geek-Grrl-Queer-Disabled-Boychick--
: gossamer@tertius.net.au   http://www.tertius.net.au/~gossamer/
: Whether you've got the skill or not is irrelavent; you still
: have to work hard and listen.  -- Wayne Carey (AFL Footballer)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "login" shell
  1999-07-24  0:41 "login" shell Bek Oberin
@ 1999-07-24  3:01 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-07-24  3:01 UTC (permalink / raw)
  To: Bek Oberin, Zsh Users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-07-24  3:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-24  0:41 "login" shell Bek Oberin
1999-07-24  3:01 ` Bart Schaefer

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).