From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22474 invoked by alias); 14 Aug 2011 23:33:10 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16228 Received: (qmail 8300 invoked from network); 14 Aug 2011 23:33:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.41 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 14 Aug 2011 19:25:56 -0400 Message-ID: Subject: Re: [[ -o interactive ]] vs if [[ -o login ]]? From: Michael Shick To: TJ Luoma Cc: Zsh Users Content-Type: multipart/alternative; boundary=000e0cd32e8cf370a704aa7f7724 --000e0cd32e8cf370a704aa7f7724 Content-Type: text/plain; charset=ISO-8859-1 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" 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 --000e0cd32e8cf370a704aa7f7724--