CVSup and PortUpgrade

Jeff LaCoursiere jeff at jeff.net
Tue Sep 26 01:42:04 BST 2006


On Mon, 25 Sep 2006, James O'Gorman wrote:

> > 5). Why when I am in a directory can I not just enter the binaries name,
> > but instead I have to prefix "./" to it before the command is
> > recognised, and is there a way to alter the behaviour so the pwd is part
> > of the path? (I remember from Uni days there is a way to do this, but
> > cannot for the life of me remember how!)
>
> Edit your shell's init file (e.g. ~/.cshrc) so that PATH starts with a
> ".". For (t)csh:
>
> set path = (. /sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin
> /usr/local/bin /usr/X11R6/bin $HOME/bin)
>
> But again, beware of needing rehash.

And beware of trojan programs.  If you are going to put "." in your path,
mke sure it is last.  Otherwise you may unintentionally run someone else's
idea of "ls", which could do really nasty things to you on multiuser
systems :)

j




More information about the Ukfreebsd mailing list