Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp
Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!decwrl!sun!gnu
From: gnu@sun.uucp (John Gilmore)
Newsgroups: net.bugs.4bsd
Subject: Re: vi bug, or how to set up .cshrc
Message-ID: <2585@sun.uucp>
Date: Thu, 8-Aug-85 21:11:02 EDT
Article-I.D.: sun.2585
Posted: Thu Aug  8 21:11:02 1985
Date-Received: Mon, 12-Aug-85 02:35:32 EDT
References: <144@peregrine.UUCP> <190@ittral.UUCP> <171@telesoft.UUCP>
Organization: Sun Microsystems, Inc.
Lines: 18

KEITH F. PILOTTI of TeleSoft said:
>     Under 4.2BSD, the best solution seems to be the following:
> 
>         set path = ( . ~ ~/bin ~/frammis /usr/ucb /usr/bin /bin )
>         if ( ! $?prompt ) exit
>         ...
>         

Actually, the "set path" is not needed.  Path is put into the
environment variable PATH, which persists across all processes you
create.  Set it in your .login .

Also note that it's often a bad idea to put "." ahead of the standard
directories in your path.  This leaves you open to trojan horses
that will run when you type "cat" or "ls" as you look around.

The "if (!x) exit" versus "if (x) indented stuff for 30 lines", which
was the real point of Keith's message, is good stuff.