[20125] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 9.0.23: vi+csh

daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Thu Jan 24 16:28:45 2002

Message-Id: <200201242128.QAA20059@biohazard-cafe.mit.edu>
To: bugs@MIT.EDU
Date: Thu, 24 Jan 2002 16:28:43 -0500
From: "Jacob Morzinski" <jmorzins@MIT.EDU>

System name:		biohazard-cafe.mit.edu
Type and version:	Sun-Fire-280R 9.0.23 (with mkserv)
Display type:		unknown

Shell:			/bin/sh
Window manager:		unknown

What were you trying to do?
	I took over a keyboard for a friend, and was editing one
	of his files with vi.

	I attempted to pipe a paragraph of text through fmt.

What's wrong:
	The shell added five lines of garbage output to the results of
	the shell escape:

stty: : No such device or address
Running standard startup activities ...
zwgc: Unable to open X display -- disabling X driver.
zwgc: To receive Zephyrgrams, (type `zwgc -ttymode').
mesg: cannot stat

	(The rest of the text after this was the output of fmt.)

What should have happened:
	Non-interactive shells shouldn't print text in a way that
	messes up vi like this.  A stock Unix system would check
	to see if csh set $prompt; Athena might have other
	variables that also control verbosity.

Please describe any relevant documentation references:
	I fully expect my friend to have standard dotfiles, but I
	haven't scrutinized them, or tried to reproduce this with
	a test account.  "where vi" reports "/usr/bin/vi" and
	"/usr/ucb/vi", and the error was observed on biohazard-cafe.

home help back first fref pref prev next nref lref last post