From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13717 invoked from network); 23 Sep 1999 21:10:03 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Sep 1999 21:10:03 -0000 Received: (qmail 6643 invoked by alias); 23 Sep 1999 21:09:19 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2613 Received: (qmail 6628 invoked from network); 23 Sep 1999 21:09:19 -0000 Date: Thu, 23 Sep 1999 14:09:15 -0700 From: Clint Olsen To: zsh-users@sunsite.auc.dk Subject: Reliable way to detect a login shell? Message-ID: <19990923140915.A44762@ichips.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre1i Organization: Intel Corporation, Hillsboro, OR X-Disclaimer: Mutt Bites! 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