delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/14/09:36:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Fri, 14 Apr 2000 17:32:49 +0300 (IDT)
From: Christoph Bugel <cbugel AT netvision DOT net DOT il>
X-Sender: chris AT pingu DOT tti DOT co DOT il
Reply-To: Christoph Bugel <cbugel AT netvision DOT net DOT il>
To: "Strachan, Iain" <Iain DOT Strachan AT software DOT aeat DOT com>
cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT 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


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 AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


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