From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id EAA09566 for ; Tue, 26 Nov 1996 04:12:31 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id MAA22688; Mon, 25 Nov 1996 12:00:30 -0500 (EST) Resent-Date: Mon, 25 Nov 1996 12:00:30 -0500 (EST) Message-Id: <199611251700.SAA09214@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: Host pws@localhost didn't use HELO protocol To: zsh-workers@math.gatech.edu (Zsh hackers list), sylvain@nasirc.hq.nasa.gov (Greg Sylvain) Subject: Re: why "stty: TCGETS: Operation not supported on socket" ???? In-reply-to: "Greg Sylvain"'s message of "Mon, 25 Nov 1996 10:35:40 MET." <199611251535.KAA26695@nasirc.hq.nasa.gov> Date: Mon, 25 Nov 1996 18:00:45 +0100 From: Peter Stephenson Resent-Message-ID: <"T9hZS1.0.NY5.j2Tco"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2474 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > Does anyone know why I would be getting the above error messages > from zsh. Zsh doesn't care what SHTTY is in the environment of. How about this? Unfortunately I have a vague memory there are recalcitrant shtty's which don't operate on stdin, but this should catch most problems. *** Src/exec.c~ Mon Nov 25 09:16:25 1996 --- Src/exec.c Mon Nov 25 17:54:55 1996 *************** *** 255,261 **** /* If the parameter STTY is set in the command's environment, * * we first run the stty command with the value of this * * parameter as it arguments. */ ! if (!exargs && (s = zgetenv("STTY"))) { char *t; exargs = args; /* this prevents infinite recursion */ --- 255,261 ---- /* If the parameter STTY is set in the command's environment, * * we first run the stty command with the value of this * * parameter as it arguments. */ ! if (!exargs && (s = zgetenv("STTY")) && isatty(0)) { char *t; exargs = args; /* this prevents infinite recursion */ -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.