Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020818204058.4357.qmail@web9401.mail.yahoo.com> Date: Sun, 18 Aug 2002 13:40:58 -0700 (PDT) From: Abhijit Patait Subject: "bash: hello: Command not found" error for hello.exe in present directory To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I recently installed cygwin on my Windows XP machine. I wrote a simple "hello world" program and compiled and linked it using gcc to create an executable named "hello.exe" in a directory, named ~/hello/. However, when I type "hello.exe" on the command line (in the directory ~/hello/), I get a "bash: hello: command not found" error. I have verified that the file hello.exe exists in that directory. A workaround is that I have to issue a command "./hello" and then it works. Another workaround is that I append "./" to my path in the .bashrc file in my home directory and then it works too. Could someone shed light on what's going on? Why is the shell not able to look for the command in the present directory first? Thanks in advance for your help. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/