Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.emacs Subject: Re: op. not supported on socket?? :-( Message-ID: <1990Dec7.182344.24454@Think.COM> Date: 7 Dec 90 18:23:44 GMT References: Sender: news@Think.COM Distribution: comp Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 26 In article shawn@litsun.epfl.ch writes: >The problem is that I get a message when I do this >prepended onto the top of the uncompressed file >that says: "stty: Operation not supported on socket" This sounds like a relative of the imfamous "not a tty" error message that some programs randomly generate. I presume you run uncompress in a subshell. The problem is probably that your .cshrc issues the "stty" command, even though its stdin and stdout aren't connected to a terminal (they're connected to the pipe that Emacs is using). Your .cshrc should check $prompt before doing such commands. $prompt is only set in interactive shells, not in subshells that are spawned just to invoke a single command line. It should look something like: if ( $?prompt ) then stty ... endif -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar