[3530] in testers
Re: stty run from cshrc on .logout invocation
daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Jun 4 13:50:46 1998
To: Robert A Basch <rbasch@MIT.EDU>
Cc: Greg Hudson <ghudson@MIT.EDU>, testers@MIT.EDU, source-developers@MIT.EDU
In-Reply-To: Your message of "Thu, 04 Jun 1998 12:15:10 EDT."
<199806041615.MAA02876@aupair.mit.edu>
Date: Thu, 04 Jun 1998 13:50:39 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> Assuming we do need the stty, probably the best thing to do is add a
> test here for the standard input being a terminal, using 'tty -s'.
> I'll add this if people agree...
Perhaps we want to replace
if ($?prompt)
with
if ( -t 0 )
I thought, though, that ($?prompt) was generally only true for an
interactive shell. Odd that it's not true in this case.