Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel!munnari.oz.au!spool.mu.edu!umn.edu!umeecs!nova!ellis From: ellis@nova.gmi.edu (Stew Ellis) Subject: Re: binaries are unavailable when moved to /usr/bin until re-logon Message-ID: <ellis.717163328@nova> Sender: news@zip.eecs.umich.edu (Mr. News) Organization: GMI Engineering&Management Institute, Flint, MI References: <1992Sep21.175158.25399@Saigon.COM> <D496JN@mailgzrz.tu-berlin.de> Date: Tue, 22 Sep 1992 12:02:08 GMT Lines: 39 jaenicke@emserver.ee.tu-berlin.de (Lutz Jaenicke) writes: >In article <1992Sep21.175158.25399@Saigon.COM> David.Fox@Saigon.COM writes: >>After doing a few rounds of getting source-code to something, compiling it, >>building the binary of it, and then moving it into its proper place (usr/ >>bin, or /usr/local/bin) I've noticed that when I attempt to run the command >>once it has been moved - even though it certainly is in the path - that >>the system responds with "Command not found." However, when I relogon, the >>file now is accessible. >> >>Coming from a DOS world, I'm used to having the commands available immediately >>after they've been moved, assuming of course, the directory they are moved to >>is in the path. >> >>This doesn't seem to be the case with 386BSD. Question: is this expected >>behavior? >Try rehash, since for performance reasons the path is only scanned once >one the path is set and you have to rehash the list (or re-set the path) >after moving executables. > Lutz >-- >Lutz Jaenicke jaenicke@emserver.ee.tu-berlin.de >Institut fuer Elektrische Maschinen jaenicke@emapollo.ee.tu-berlin.de >Technische Universitaet Berlin Tel. (004930)314-24552 >Einsteinufer 11, D-1000 Berlin 10 Fax. (004930)314-21133 Or use a Bourne shell related shell such as bash, ksh or zsh (not sh). These shells offer many of the same features as tcsh, but do not hash the path, therefore they re-search the path each time you enter a command line. There used to be a big win for having the hash, but now computers are at least an order of magnitude faster. -- -- ___________________ R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765 / _____ ______ Humanities & Social Science, GMI Eng.& Mgmt. Inst. / / / / / / Flint, MI 48504 ellis@nova.gmi.edu /________/ / / / /