From owner-freebsd-questions@FreeBSD.ORG Mon May 15 21:04:35 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 DC2FD16A582 for ; Mon, 15 May 2006 21:04:35 +0000 (UTC) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8507843D4C for ; Mon, 15 May 2006 21:04:35 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.13.6+Sun/8.13.6) with ESMTP id k4FL4Y4E009602; Mon, 15 May 2006 17:04:34 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.13.6+Sun/8.13.6/Submit) id k4FL4Y2V009601; Mon, 15 May 2006 17:04:34 -0400 (EDT) From: Jerry McAllister Message-Id: <200605152104.k4FL4Y2V009601@clunix.cl.msu.edu> To: atom.powers@gmail.com (Atom Powers) Date: Mon, 15 May 2006 17:04:34 -0400 (EDT) In-Reply-To: X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 21:04:36 -0000 > > 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)? This is nothing new. Your shell reads up the stuff in its path when it starts up and makes an internal table so it doesn't have to go fishing around every time you type a command. This is to speed up response and cut down on unnecessary disk accesses. You can make it re-read the path and recreate that table with the 'rehash' shell command. ////jerry > > ---- > 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. > -- > Perfection is just a word I use occasionally with mustard. > --Atom Powers-- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >