Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 15:42:31 +1000
From:      Gregory Bond <gnb@itga.com.au>
To:        Tim Zingelman <zingelman@fnal.gov>
Cc:        Larry Rosenman <ler@lerctr.org>, freebsd-stable@FreeBSD.ORG
Subject:   Re: openSSH 2.1 vs. 2.1.1 
Message-ID:  <200007250542.PAA28434@lightning.itga.com.au>
In-Reply-To: Your message of Tue, 25 Jul 2000 00:31:06 -0500.

next in thread | raw e-mail | index | archive | help
> My .bashrc file has a line like this to avoid stty problems
> 
>  if [ "`tty`" != "not a tty" ]; then stty ...

Two much better ways of achieving the same result:
	if [ "$PS1" = "" ]; then
		# .... is not an interractive shell
	fi
or
	if [ -t 0 ] ; then 
		stty ...
		# stding is a tty
	fi



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007250542.PAA28434>