*BSD News Article 30324


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!foxhound.dsto.gov.au!fang.dsto.gov.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!hart
From: hart@apanix.apana.org.au (Leigh Hart)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Can't run new programs until re-login??
Date: 12 May 94 20:01:05 GMT
Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines)
Lines: 25
Message-ID: <hart.768772865@apanix.apana.org.au>
References: <2qpqm9$58m@news.tamu.edu>
NNTP-Posting-Host: seldon.apanix.apana.org.au

hickman@prism.tamu.edu (Dan Hickman) writes:

>I am running FreeBSD 1.1 GAMMA.  If I create a new executable file,
>either by compiling it or by creating a script, I cannot execute it
>until I re-login to my account.  Is this normal?  Is there any way
>to fix it?

There's nothing really broken.  You are running csh or tcsh as your
shell which keep a list of executable files along your path.  This
shortens the time taken to search for an executable along your path
as csh/tcsh only has to search the list, not each directory on your
path.

Yes it is normal.  :-)

The command 'rehash' reloads csh/tcsh's list of executable files.

Cheers

Leigh
--
                                 Leigh Hart
                               C/- PO Box 758
                          North Adelaide  SA  5006
 hart@eppie.apana.org.au  hart@apanix.apana.org.au  hart@cleese.apana.org.au