vi bug, or how to set up .cshrc

John Gilmore gnu at sun.uucp
Fri Aug 9 11:11:02 AEST 1985


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
>         ...
>         <rest of your (interactive) run commands>

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.



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