Bug 654 - vi executes an external program and prints "stty: TIOCGETD: Operation not supported"
Summary: vi executes an external program and prints "stty: TIOCGETD: Operation not sup...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-08-05 06:10 UTC by ljking
Modified: 2001-11-28 03:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ljking 1995-08-05 06:10:00 UTC
	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.

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.
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.
Comment 1 Joerg Wunsch freebsd_committer freebsd_triage 1995-08-06 08:54:57 UTC
State Changed
From-To: open->closed

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).