Subject: Re: stty: TIOCGETD: Operation not supported
To: Brian de Alwis <bdealwis@newbridge.com>
From: None <Mark_Weaver@brown.edu>
List: netbsd-help
Date: 04/19/1995 00:28:51
> You can check for an interactive shell by testing the prompt. Something
> like this will work:

I think a better way to test for an interactive shell is to check it
directly:

case $- in
    *i*) echo "this is an interactive shell"
esac

	Mark
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science