From owner-freebsd-questions Wed Jun 5 11:56:49 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA23774 for questions-outgoing; Wed, 5 Jun 1996 11:56:49 -0700 (PDT) Received: from mistery.mcafee.com (jimd@mistery.mcafee.com [192.187.128.69]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA23767 for ; Wed, 5 Jun 1996 11:56:47 -0700 (PDT) Received: (from jimd@localhost) by mistery.mcafee.com (8.6.11/8.6.9) id LAA01511; Sat, 5 Jun 2010 11:53:19 -0700 From: Jim Dennis Message-Id: <201006051853.LAA01511@mistery.mcafee.com> Subject: Re: command not found To: info@adn.edu.ph (Information Help Desk) Date: Sat, 5 Jun 110 11:53:18 -0700 (PDT) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Information Help Desk" at Jun 4, 96 11:05:46 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > HI !!! > > Whenever I run an executable file located in the current directory > I'm in, I always receive a 'command not found' error. I found this very Good! > odd since the executable file is there but it seems that the shell cannot > find it. To remedy this problem I have to prefix any executable file I > want to run with './' (i.e. ./bootpgw). Very Good! > > Is there any other solutions for this bug (if it is)? This is not a bug! Especially for root! If *you* _really_ want to trust whatever executable just happens to be laying around your current working directory you can at . (specifically :.) to the end of your path. Keep in mind that anyone on your system might leave a file named something like "cd~" or "ls-a" or "dir" or anything else that you *might* type (as a typo) and let you trip over it sometime when you are visiting their directory (or /tmp, or any writable directory). 'root' SHOULD NEVER DO THIS! Just use the ./ to make the shell understand that you really mean to execute this one right here. > Thank You ~:') > -- > jf