From: Gabor <gabor@vmunix.com>
To: Clint Olsen <olsenc@ichips.intel.com>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: Reliable way to detect a login shell?
Date: Fri, 24 Sep 1999 13:08:54 -0400 [thread overview]
Message-ID: <19990924130854.A6765@vmunix.com> (raw)
In-Reply-To: <19990923140915.A44762@ichips.intel.com>
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
prev parent reply other threads:[~1999-09-24 17:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-23 21:09 Clint Olsen
1999-09-24 10:07 ` Zefram
1999-09-24 17:08 ` Gabor [this message]
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=19990924130854.A6765@vmunix.com \
--to=gabor@vmunix.com \
--cc=olsenc@ichips.intel.com \
--cc=zsh-users@sunsite.auc.dk \
/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).