Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 10:03:00 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        Danny Pansters <danny@ricin.com>
Cc:        Atom Powers <atom.powers@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: newly installed apps not in path?
Message-ID:  <44699544.5020503@dial.pipex.com>
In-Reply-To: <200605160050.17110.danny@ricin.com>
References:  <df9ac37c0605151336o51584ba6l7a694f0491926c80@mail.gmail.com> <200605160050.17110.danny@ricin.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Danny Pansters wrote:

>On Monday 15 May 2006 22:36, Atom Powers wrote:
>  
>
>>I've noticed this behavior since 4.3, but it's just now starting to
>>get really annoying.
>>
>>Whan I install a new application (from ports) I have to execute it
>>with the full path until I start a new shell. (in sh, tcsh, and bash)
>>
>>What causes this behavior, and how can I fix it (cause newly installed
>>apps to be executable without a full path)?
>>    
>>
>
>If you're using the [t]csh shell, you need to run 'rehash' to update your 
>current path. It would be good if the post-everything part of ports would do 
>that when needed.
>  
>
It can't.  The rehash has to be executed within the context of your 
current shell (it's a builtin) and the only place you have that is the 
command line.  Any process you run (like make, portupgrade) has no 
access to that context.

If you are not wedded to tcsh, then bash would do it for you; other 
shells too, perhaps, but I can't say never having tried them.

--Alex





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44699544.5020503>