From owner-freebsd-questions@FreeBSD.ORG Mon May 15 20:51:54 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 7D1A916AB63 for ; Mon, 15 May 2006 20:51:54 +0000 (UTC) (envelope-from mj001@rogers.com) Received: from smtp103.rog.mail.re2.yahoo.com (smtp103.rog.mail.re2.yahoo.com [206.190.36.81]) by mx1.FreeBSD.org (Postfix) with SMTP id D812C43D49 for ; Mon, 15 May 2006 20:51:53 +0000 (GMT) (envelope-from mj001@rogers.com) Received: (qmail 50152 invoked from network); 15 May 2006 20:51:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=rfpcZE+wP29WGCcJ6ePKNiQNuGFwB6JOWirL7CAt+T3JalvabeGXFbyxjyNSJ+aw+n7gUpm/VCACdQRzpRY3ztX+2a7XMOI/hh4uyZC4/mqFNr5fMhBriRM7CRvUCKOmT1oyBXD6aUyFhIsgHABa/YZLtJMyAQcEwOdISrBpA9g= ; Received: from unknown (HELO chaucer.jeays.ca) (mj001@rogers.com@72.139.51.96 with plain) by smtp103.rog.mail.re2.yahoo.com with SMTP; 15 May 2006 20:51:52 -0000 From: Mike Jeays To: Atom Powers In-Reply-To: References: Content-Type: text/plain Date: Mon, 15 May 2006 16:51:51 -0400 Message-Id: <1147726311.12655.47.camel@chaucer.jeays.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" 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 20:51:54 -0000 On Mon, 2006-05-15 at 13:36 -0700, 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)? > > ---- > 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. > > For csh and tcsh, I beleive you have to issue a 'rehash' command after modifying the libraries in $PATH. I would not have expected to see this problem with bash, however. -- Mike Jeays http://ca.geocities.com/mike.jeays@rogers.com