*BSD News Article 50364


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: path question
Date: 1 Sep 1995 12:47:32 +0200
Organization: Private U**x site, Dresden.
Lines: 23
Message-ID: <426oc4$esa@bonnie.tcd-dresden.de>
References: <423snf$ist@gol1.gol.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

MICHAEL  <michael@gnj.or.jp> wrote:

>If I enter "test1" then the system reports that the command is not
>found. However, if I enter "./test1" the command executed ok.

The default path does not contain `.'.  (root's default path should
never contain it, btw.)

>I checked the path by looking at "set" and the path includes
>"/home/michael/bin", so I made a directory called bin and moved
>test1 into bin. But when I enter "test1" it still is not found.

For [t]csh: type `rehash'.

For [ba]sh: type `hash -r'

The shell remembers the location of commands, so you have to notify it
whenever you have installed a new command.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)