From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29106 invoked from network); 24 Sep 1999 17:15:35 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Sep 1999 17:15:34 -0000 Received: (qmail 24112 invoked by alias); 24 Sep 1999 17:14:03 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2615 Received: (qmail 24105 invoked from network); 24 Sep 1999 17:14:03 -0000 Date: Fri, 24 Sep 1999 13:08:54 -0400 From: Gabor To: Clint Olsen Cc: zsh-users@sunsite.auc.dk Subject: Re: Reliable way to detect a login shell? Message-ID: <19990924130854.A6765@vmunix.com> References: <19990923140915.A44762@ichips.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19990923140915.A44762@ichips.intel.com> X-Operating-System: FreeBSD 2.2.7-STABLE i386 you can test options with -o if [[ -o some_option ]] then whatever fi On Thu, Sep 23, 1999 at 02:09:15PM -0700, Clint Olsen wrote: # Is there a way to tell (checking switches/arguments) that a particular # shell is a login shell? I'd like to be able to do this in my .zshenv to # set some options. # # For example: # # if [ i'm a login shell ]; then # set -o ignoreeof # fi # # Thanks, # # -Clint