From: cross@va.pubnix.com (Chris P. Ross)
To: Laurent Wacrenier <Laurent.Wacrenier@gin.obspm.fr>
Cc: luomat@cedman.remote.Princeton.EDU, zsh-users@math.gatech.edu
Subject: Re: checking if in interactive shell
Date: Sun, 10 Sep 1995 01:45:37 -0400 [thread overview]
Message-ID: <BAA02483.199509100545@ballista.va.pubnix.com> (raw)
In-Reply-To: Laurent Wacrenier's message of Sun, 10 September 1995 04:34:01 +0200 <199509100234.EAA02808@DAEC.ObsPM.Fr>
Laurent Wacrenier <Laurent.Wacrenier@gin.obspm.fr> said:
>> Ok, in csh I'd check for interactive shell via this:
> [ csh code deleted :]
>> how do I do this in zsh?
> I would do it like this :
> case "$-" in
> *i*) interactive ;;
> *) not interactive ;;
> esac
Doh! What's wrong with:
if [[ -o interactive ]]; then
# We're interactive!
fi
> -- Laurent
- Chris
next prev parent reply other threads:[~1995-09-10 5:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-10 2:34 Laurent Wacrenier
1995-09-10 5:45 ` Chris P. Ross [this message]
-- strict thread matches above, loose matches on Subject: below --
1995-09-10 2:21 Timothy J. Luoma
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=BAA02483.199509100545@ballista.va.pubnix.com \
--to=cross@va.pubnix.com \
--cc=Laurent.Wacrenier@gin.obspm.fr \
--cc=luomat@cedman.remote.Princeton.EDU \
--cc=zsh-users@math.gatech.edu \
/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).