cygwin and executables

Patrick Doyle wpd@delcomsys.com
Fri Feb 2 05:49:00 GMT 2001


One possibility is that you don't have "." in your path.  This catches a
lot of new UNIX (and, hence, CYGWIN) users off guard, as DOS implicitly
searches the current directory when you type a command line.  bash (and
other shells) only search the directories that are in the PATH
environment variable, so if "." is not in the path, when you type
"my.exe", it won't find "./my.exe" and try to execute it.

Two ways to solve this problem are:
1) Type "./my.exe" (or "./my") when you want to run the "my" program
that is in the current directory.  (This is what I do)
2) Add "." to (the end of) your path.  Note that there are some well
know UNIX security issues with having "." in your path.

Good luck...
--wpd


Chris Faylor wrote:
> 
> Please check out the project web page for links to available information
> and ports:  http://cygwin.com/ .
> 
> If you don't see what you need there, then the cygwin mailing list is
> the best place to make observations or get questions answered.
> Information on the mailing list is available at the project web page.
> 
> For your convenience, I've reset the Reply-To: address to point to the
> cygwin mailing list.  I've also Cc'ed this reply there.
> 
> On Thu, Feb 01, 2001 at 03:18:26PM -0800, Gary Loffman wrote:
> >Chris,
> >
> >sorry to bug you.  I was wondering if you could tell me how I can run my
> >.exe files in cywin.  I compiled a few c files using gcc and get a bash:
> >my.exe: command not found.
> >
> >Any suggestions would be appreciated.
> >
> >Thanks,
> >Gary
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list