vi bug(feature?)

Frank Crawford frank at aaec.OZ
Wed Jul 31 14:30:26 AEST 1985


> My standard shell is the /bin/csh.  When I try doing a any command
> with a name that needs to be shell expanded the editor calls the shell,
> but gets confused by the shell prompt and includes that in the file list.
> This is a pain when using the n command, but makes things like e ~/.signature
> impossible(at lease I don't no how to make it work.).
> I do not have source code.  I am running on a SUN 2/120 under Unix 4.2BSD(Sun
> release 2.00).

	The problem is probably caused by you unconditionally setting your
prompt in your `.cshrc'.  What happens is that when /bin/csh is invoked
by `vi' it does it in such a way that the prompt is undefined.   What you
need to do is test if it is defined before you set it, i.e.

if ($?prompt == 1) set prompt="my prompt[\!] "

That should fix it.

						Frank Crawford

ACSnet:	frank at aaec.OZ
UUCP:	...{decvax,vax135,eagle,pesnta}!mulga!aaec!frank



More information about the Comp.bugs.4bsd.ucb-fixes mailing list