Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: checking if in interactive shell
- X-seq: zsh-users 83
- From: Laurent Wacrenier <Laurent.Wacrenier@xxxxxxxxxxxx>
- To: luomat@xxxxxxxxxxxxxxxxxxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: checking if in interactive shell
- Date: Sun, 10 Sep 1995 04:34:01 +0200
> 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
-- Laurent
Messages sorted by:
Reverse Date,
Date,
Thread,
Author