From owner-freebsd-questions Mon Oct 4 11:43:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id 14CF2154BF for ; Mon, 4 Oct 1999 11:43:43 -0700 (PDT) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 5231 invoked from network); 4 Oct 1999 18:43:41 -0000 Received: from userbr18.uk.uudial.com (HELO marder-1.) (62.188.146.211) by smtp.dial.pipex.com with SMTP; 4 Oct 1999 18:43:41 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id TAA00727; Mon, 4 Oct 1999 19:43:36 +0100 (BST) (envelope-from mark) Date: Mon, 4 Oct 1999 19:43:35 +0100 From: Mark Ovens To: chris@tourneyland.com Cc: freebsd-questions@freebsd.org Subject: Re: 3.3-Release - problem with PATH? Message-ID: <19991004194335.A316@marder-1> References: <37F7CCFF.D2B7DC70@3-cities.com> <3.0.6.32.19991003122429.008dea80@mail.9netave.net> <37F7CCFF.D2B7DC70@3-cities.com> <19991004163708.O63946@daemon.ninth-circle.org> <3.0.6.32.19991004132156.008e3850@mail.9netave.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <3.0.6.32.19991004132156.008e3850@mail.9netave.net> Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Oct 04, 1999 at 01:21:56PM -0500, chris@tourneyland.com wrote: > I guess I should have been more clear - the problem isn't that I can't run > programs in the current directory, it's that I can't run programs on the path. > > It seems like the problem is that if I install a program on the path, I > can't run it until I logout and log back in. It's as if all the programs on > the path are stored in some sort of database that the shell is consulting, > and new installs don't get committed to this db until I log out. That would > be kind of silly, so I'll bet it's something else, but at any rate that's > what it's acting like. > You need to rebuild the hash table if you want to your newly installed program in a currently running shell. If your running csh(1) (and maybe other shells as well, I'm not sure) try typing ``rehash'' at the command prompt, then your program name. > Thanks though, > Chris > > At 04:37 PM 10/4/99 +0200, you wrote: > >On [19991003 23:46], Kent Stewart (kstewart@3-cities.com) wrote: > >>chris@tourneyland.com wrote: > >>> > >>> I just upgraded from 3.2 Release to 3.3 Release. No problems, except it > >>> seems that now my PATH variable is being ignored. My PATH is just fine, > >>> except trying to execute anything on the path (e.g. bash) gives me > 'command > >>> not found'. Using the full path name works fine. > >>> > >>It is the kind of response you get when "." isn't in your path. I > >>personally don't have dot in my path and I have to run via ./program. > > > >>From a security perspective that's the best thing to do. > > > >Using a . in your PATH makes you way less careful about running unknown > >programs. > > > >So I always recommend not putting a . in one's PATH. Seems most Linux > >people do indeed put the . in there. *sigh* > > > >-- > >Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl > >The BSD Programmer's Documentation Project > >Network/Security Specialist BSD: Technical excellence at its best > >Whispering winds in moonlit wood, a totem oak once golden stood... > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message