Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (MU) 9/23/84; site aaec.OZ Path: utzoo!linus!philabs!cmcl2!seismo!munnari!basser!aaec!frank From: frank@aaec.OZ (Frank Crawford) Newsgroups: net.bugs.4bsd Subject: Re: vi bug(feature?) Message-ID: <469@aaec.OZ> Date: Wed, 31-Jul-85 00:30:26 EDT Article-I.D.: aaec.469 Posted: Wed Jul 31 00:30:26 1985 Date-Received: Thu, 1-Aug-85 06:25:28 EDT References: <144@peregrine.UUCP> Distribution: net Organization: Australian Atomic Energy Commission Lines: 21 > 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@aaec.OZ UUCP: ...{decvax,vax135,eagle,pesnta}!mulga!aaec!frank