Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Date: Fri, 14 Apr 2000 17:32:49 +0300 (IDT)
From: Christoph Bugel <cbugel@netvision.net.il>
X-Sender: chris@pingu.tti.co.il
Reply-To: Christoph Bugel <cbugel@netvision.net.il>
To: "Strachan, Iain" <Iain.Strachan@software.aeat.com>
cc: "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
Subject: Re: Newbie question on paths
In-Reply-To: <2E300728EEF9D3119D8000E018C1864F1C8F48@pc-2215.harwell.aeat.co.uk>
Message-ID: <Pine.LNX.4.20.0004141729010.23686-100000@pingu.tti.co.il>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII



You are right - it can be done with the PATH variable
for example:
export PATH=${PATH}:.
will append a `:' and a dot to it.
BTW - maybe ./hello.exe is better, in unix usually there is no dot in the
path by default for security reasons.

also you're right about .bashrc
bash.exe will look for it in your / (usually C:\), and/or in your $HOME
directory. (as it says somewhere in the FAQ IIRC)

good luck :)


on Apr 14 Strachan, Iain wrote:

> Hi, 
> I'm new to cygwin but used UNIX some years back (before BASH was available).
> 
> I've installed cygwin on my system (under NT) with no problems and everything runs.
> 
> However, I am unable to get it to recognise <current directory> as part of the path.  Hence if I have a "hello.exe" in the current directory, to run it I have to do "./hello", whereas "hello" by
> itself cannot be found.
> 
> I tried various logical things to do with setting the PATH environment variable, but to no avail.
> 
> Could you tell me how to make this work?  Also if there's an equivalent file to the UNIX .bashrc file, where I could automatically set this up?
> 
> Regards,
> Iain Strachan.
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 

Christoph Bugel

...Unix, MS-DOS and Windows NT, also known as "The Good, The Bad and the
Ugly" -- Matt Welsh


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

