Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ -o interactive ]] vs if [[ -o login ]]?
- X-seq: zsh-users 16228
- From: Michael Shick <mfshick@xxxxxxxxx>
- To: TJ Luoma <luomat@xxxxxxxxx>
- Subject: Re: [[ -o interactive ]] vs if [[ -o login ]]?
- Date: Sun, 14 Aug 2011 19:25:56 -0400
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V5Eflf7GEKzAKIDaOt+YqOYmOtJgikye5jpvgZldt/w=; b=rp7jZBhFXOjC9WO4IjczyaMTXkiGmEr6AR3lv1l0Vntl61n4c8NgL4Fro2dccw9ioL CW35kRHAUK+zznTr+YPt/ApXPtTjcL82A71HKb2XMSX1RxBzYC0Ak8CV1gUiF58QH4De C3l/bEX18Yej5uduW5KSS/bivzfQ+zKezfk2g=
- In-reply-to: <CADjGqHtVSHJbdrHfJVR9T0uZ0my-Xb396-3k_ZA_fZgD24phdA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHtVSHJbdrHfJVR9T0uZ0my-Xb396-3k_ZA_fZgD24phdA@mail.gmail.com>
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@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author