From owner-freebsd-stable Mon Jul 24 22:42:49 2000 Delivered-To: freebsd-stable@freebsd.org Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by hub.freebsd.org (Postfix) with ESMTP id 93D1737B7D1 for ; Mon, 24 Jul 2000 22:42:44 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id PAA13494; Tue, 25 Jul 2000 15:42:31 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from itga.com.au (lightning.itga.com.au [192.168.71.20]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id PAA28434; Tue, 25 Jul 2000 15:42:31 +1000 (EST) Message-Id: <200007250542.PAA28434@lightning.itga.com.au> X-Mailer: exmh version 2.0.1 12/23/97 From: Gregory Bond To: Tim Zingelman Cc: Larry Rosenman , freebsd-stable@FreeBSD.ORG Subject: Re: openSSH 2.1 vs. 2.1.1 In-reply-to: Your message of Tue, 25 Jul 2000 00:31:06 -0500. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 25 Jul 2000 15:42:31 +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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