From owner-freebsd-questions@FreeBSD.ORG Mon May 15 22:51:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11F3E16A4E5 for ; Mon, 15 May 2006 22:51:12 +0000 (UTC) (envelope-from danny@ricin.com) Received: from smtpq2.groni1.gr.home.nl (smtpq2.groni1.gr.home.nl [213.51.130.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C21243D46 for ; Mon, 15 May 2006 22:51:10 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.130.188] (port=38555 helo=smtp3.groni1.gr.home.nl) by smtpq2.groni1.gr.home.nl with esmtp (Exim 4.30) id 1Fflu9-0006ju-Ll; Tue, 16 May 2006 00:51:09 +0200 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:52422 helo=desktop.homenet) by smtp3.groni1.gr.home.nl with esmtp (Exim 4.30) id 1Fflu7-0007UD-Td; Tue, 16 May 2006 00:51:07 +0200 From: Danny Pansters To: freebsd-questions@freebsd.org Date: Tue, 16 May 2006 00:50:16 +0200 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605160050.17110.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: Atom Powers Subject: Re: newly installed apps not in path? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 22:51:12 -0000 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. Dan. > > ---- > DIT793# which sudo > sudo: Command not found. > DIT793# portinstall sudo > ... > DIT793# ll /usr/local/bin/sudo > ---s--x--x 2 root wheel 89020 May 15 13:31 /usr/local/bin/sudo > DIT793# which sudo > sudo: Command not found. > DIT793# tcsh > DIT793# which sudo > /usr/local/bin/sudo > DIT793# exit > exit > DIT793# which sudo > sudo: Command not found.