From ocunix@yak.nstn.ns.ca  Fri Aug  4 22:04:34 1995
Received: from yak.nstn.ns.ca (yak.nstn.ns.ca [137.186.128.14])
          by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id WAA25602
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 4 Aug 1995 22:04:31 -0700
Received: (from ocunix@localhost) by yak.nstn.ns.ca (8.6.12/8.6.9) id CAA08880 for freebsd.org!FreeBSD-gnats-submit; Sat, 5 Aug 1995 02:04:22 -0300
Received: by ferret.ocunix.on.ca (Smail3.1.28.1 #6)
	id m0sebAU-00005WC; Sat, 5 Aug 95 00:49 EDT
Received: (from ljking@localhost) by ljk.ocunix.on.ca (8.6.11/8.6.6) id WAA02734; Fri, 4 Aug 1995 22:00:27 -0400
Message-Id: <199508050200.WAA02734@ljk.ocunix.on.ca>
Date: Fri, 4 Aug 1995 22:00:27 -0400
From: ljking@ljk.ocunix.on.ca
Reply-To: ljking@ljk.ocunix.on.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: bin
X-Send-Pr-Version: 3.2

>Number:         654
>Category:       bin
>Synopsis:       vi executes an external program and prints "stty: TIOCGETD: Operation not supported"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug  4 22:10:00 PDT 1995
>Closed-Date:    Sun Aug 6 09:54:57 MET DST 1995
>Last-Modified:  Tue Nov 27 19:30:34 PST 2001
>Originator:     Lawrence J. King
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Organization:

Lawrence J. King          ljking@ljk.OCUnix.On.Ca
OcUnix: the Information Dirt Road.
>Environment:

	Intel 486DX4/100
	20M RAM
	S3 VLB video card
	X11R6-3.11
	SCSI disks only
	all of this information is totally irrelevant beceause
	the problem will manifest itself on any FreeBSD-2.?? platform

>Description:

	When vi executes a shell command it will print the error
	message "stty: TIOCGETD: Operation not supported". 
	FreeBSD-2.?? does this, no other version of vi have
	used does this including FreeBSD-1.1.5.

>How-To-Repeat:

	- open a vi session with a text file.
	- move the cursor to the beginning of a line of text.
	- enter the command !}cat followed by a CR
	- the correct response ids for cat to echo the input
	  data and there to be no apperant change to
	  the file.
	- The response of FreeBSD-2.?? vi is to insert a line with 
	  the message "stty: TIOCGETD: Operation not supported",
	  this is incorrect.

>Fix:
	
	I assume vi tries to perform a stty before executing an
	external program (in this case `cat'), the stty has invalid
	parameters. I suspect the fix is to simply remove the offending
	call to stty, but I haven't looked at the code.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Aug 6 09:54:57 MET DST 1995 
State-Changed-Why:  
This is a no-bug (pilot error).  The call to stty does most likely 
happen from a ~/.cshrc file where it's probably not protected by 
an ``if($?prompt)'' block. 

It's in no way vi's faul (and cannot be reproduced as such). 

>Unformatted:
 
