Is this a bug? SunOS 4.1.1 csh, which, and $?prompt

Tim Ramsey tar at math.ksu.edu
Sun May 5 14:41:13 AEST 1991


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 at math.ksu.edu/(913) 532-6750/2-7004 (FAX)
Department of Mathematics, Kansas State University, Manhattan KS 66506-2602



More information about the Comp.unix.shell mailing list