zsh-users
 help / color / mirror / code / Atom feed
From: Michael Shick <mfshick@gmail.com>
To: TJ Luoma <luomat@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: [[ -o interactive ]] vs if [[ -o login ]]?
Date: Sun, 14 Aug 2011 19:25:56 -0400	[thread overview]
Message-ID: <CAGGPYB18-T45rwbBK6NdtSTTSxZG+i7dyoxObe3Yw8StDEpF7Q@mail.gmail.com> (raw)
In-Reply-To: <CADjGqHtVSHJbdrHfJVR9T0uZ0my-Xb396-3k_ZA_fZgD24phdA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

An interactive shell is just that; it reads and writes to and from a
terminal (ideally one with a user at it).  A login shell reads and runs
login-related files like /etc/profile and ~/.profile.  An interactive shell
need not be a login shell and vice versa.
On Aug 14, 2011 6:57 PM, "TJ Luoma" <luomat@gmail.com> wrote:
> If there any reason to prefer
>
> if [[ -o interactive ]]
>
> rather than
>
> if [[ -o login ]]
>
> ?
>
> Are they two ways of saying the same thing? If not, could someone
> explain the difference?
>
> Thanks
>
> TjL

  parent reply	other threads:[~2011-08-14 23:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14 22:46 TJ Luoma
2011-08-14 23:24 ` Mikael Magnusson
2011-08-14 23:25 ` Michael Shick [this message]
2011-08-14 23:28 ` Vincent Lefevre
2011-08-14 23:44   ` TJ Luoma
2011-08-15  0:12 ` Bart Schaefer
2011-08-15  1:28   ` Vincent Lefevre

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=CAGGPYB18-T45rwbBK6NdtSTTSxZG+i7dyoxObe3Yw8StDEpF7Q@mail.gmail.com \
    --to=mfshick@gmail.com \
    --cc=luomat@gmail.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).