delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/02/08:50:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A7ABB18.E0C0865A@delcomsys.com>
Date: Fri, 02 Feb 2001 08:50:16 -0500
From: Patrick Doyle <wpd AT delcomsys DOT com>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en,zh,zh-CN,zh-TW
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: Gary Loffman <gloffman AT titan DOT com>
Subject: Re: cygwin and executables
References: <4 DOT 3 DOT 2 DOT 20010201151510 DOT 00af53c8 AT mail DOT linkabit DOT titan DOT com> <20010201185407 DOT D11413 AT redhat DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019