delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/04/01:26:17

Date: Fri, 3 Apr 1998 22:25:28 -0800 (PST)
Message-Id: <199804040625.WAA17137@adit.ap.net>
Mime-Version: 1.0
To: "Carlos Alcalde" <caalcalde AT ccgate DOT hac DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Setting a path

At 12:10  4/3/1998 -0800, Carlos Alcalde wrote:
>I have not been able ( by editting .bashrc and _bashrc (I tried both just to
>be safe) ) to direct my path so that under bash I can execute a command
>located in my current directory. Under Linux I just add :. to my path. DJGPP
>shows the addition when typing env but only the path from autoexec.bat gets
>implemented. Any ideas?

`bash' uses the DOS-ish scheme of `;'-separated PATH elements. My version
(1.14.7) appends `;.' to the end of PATH automagically, so commands in the
current directory should work without needing any changes. The following
might help to figure this out:

* Version of `bash' you use (run `bash -version')
* Output of `printenv PATH' from command.com
* Ditto, from `bash'.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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