Newsgroups: comp.unix.shell
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!math.ksu.edu!tar
From: tar@math.ksu.edu (Tim Ramsey)
Subject: Is this a bug?  SunOS 4.1.1 csh, which, and $?prompt
Message-ID: <1991May5.044113.15648@maverick.ksu.ksu.edu>
Sender: news@maverick.ksu.ksu.edu (The News Guru)
Nntp-Posting-Host: hilbert.math.ksu.edu
Organization: Kansas State University
Date: Sun, 5 May 91 04:41:13 GMT
Lines: 24

With the following .cshrc:

if ($?prompt) then  # Execute only if interactive cshell
	stty tostop erase ^H kill ^U
endif

the command 

   which emacs

returns what I expect.  However, the command

   echo `which emacs`

gives "stty: TCGETS: Operation not supported on socket" -- the stty is
being executed.  Is this a bug, or a feature, or am I doing something
wrong?  I first tripped over this when I typed "strings `which bison`".

Thanks for any insight.

--
Tim Ramsey/system administrator/tar@math.ksu.edu/(913) 532-6750/2-7004 (FAX)
Department of Mathematics, Kansas State University, Manhattan KS 66506-2602
