zsh-workers
 help / color / mirror / code / Atom feed
* Re: why "stty: TCGETS: Operation not supported on socket" ????
       [not found] <199611251535.KAA26695@nasirc.hq.nasa.gov>
@ 1996-11-25 17:00 ` Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1996-11-25 17:00 UTC (permalink / raw)
  To: Zsh hackers list, Greg Sylvain

> 	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 <pws@ifh.de>       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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-11-25 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <199611251535.KAA26695@nasirc.hq.nasa.gov>
1996-11-25 17:00 ` why "stty: TCGETS: Operation not supported on socket" ???? Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).