zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: 'login' vs 'interactive' ?
Date: Tue, 18 Nov 2014 17:06:38 +0000	[thread overview]
Message-ID: <20141118170638.3a173cce@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <546B7A65.2070806@necoro.eu>

On Tue, 18 Nov 2014 17:57:09 +0100
René Neumann <lists@necoro.eu> wrote:
> vs (from the FAQ-excerpt you quoted)
> 
> >   All login shells are interactive.

That's even older than the other sources of information...

diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo
index 08ea979..dcb2ec5 100644
--- a/Etc/FAQ.yo
+++ b/Etc/FAQ.yo
@@ -1017,19 +1017,26 @@ sect(In which startup file do I put...?)
   reason it is important for administrators to make sure tt(/etc/zshenv)
   is as brief as possible.
 
-  The order in which the four files are searched (none of them myem(need)
-  to exist) is the one just given.  However, tt(.zprofile) and tt(.zlogin)
-  are only run when the shell is a login shell --- when you first login,
-  of course, and whenever you start zsh with the tt(-l) option.  All
-  login shells are interactive.  The order is the only difference
-  between those; you should decide whether you need things set before or
-  after tt(.zshrc).  These files are a good place to set environment
-  variables (i.e. mytt(export) commands), since they are passed on to
-  all shells without you having to set them again, and also to check
-  that your terminal is set up properly (except that if you want to
-  change settings for terminal emulator windows like tt(xterm) you will
-  need to put those in tt(.zshrc), since usually you do not get a login
-  shell here).  
+  The order in which the four files are searched (none of them
+  myem(need) to exist) is the one just given.  However, tt(.zprofile)
+  and tt(.zlogin) are only run when the shell is a login shell --- when
+  you first login, of course, and whenever you start zsh with the tt(-l)
+  option.  The order is the only difference between those; you should
+  decide whether you need things set before or after tt(.zshrc).  These
+  files are a good place to set environment variables (i.e. mytt(export)
+  commands), since they are passed on to all shells without you having
+  to set them again, and also to check that your terminal is set up
+  properly (except that if you want to change settings for terminal
+  emulator windows like tt(xterm) you will need to put those in
+  tt(.zshrc), since usually you do not get a login shell here).
+
+  Login shells are often interactive, but this is not necessarily the
+  case.  It is the programme that starts the shell that decides if it is
+  to be a login shell, and it is not required that the shell be run
+  interactively.  A possible example is a display manager that starts a
+  shell to initialise your environment before running the window manager
+  to create terminals: it might run this as a login shell but with no
+  terminal, so it is not interactive.
 
   The only file you can alter which is started with every zsh (unless
   you use the tt(-f) option) is tt(.zshenv), so this is a good place to \

pws


      reply	other threads:[~2014-11-18 17:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-18 16:11 TJ Luoma
2014-11-18 16:21 ` Axel Beckert
2014-11-18 17:19   ` Ray Andrews
2014-11-18 19:27     ` Axel Beckert
2014-11-18 16:39 ` Peter Stephenson
2014-11-18 16:57   ` René Neumann
2014-11-18 17:06     ` Peter Stephenson [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=20141118170638.3a173cce@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /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).