delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/13/00:12:20

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: Re: cygwin b20 bash path usage?
13 Nov 1998 00:12:20 -0800 :
Message-ID: <19981112121654.26282.rocketmail.cygnus.gnu-win32@send106.yahoomail.com>
Reply-To: earnie_boyd AT yahoo DOT com
Mime-Version: 1.0
To: "Pierre A. Humblet" <Pierre DOT Humblet AT eurecom DOT fr>,
William D Kirby <wdkirby AT ix DOT netcom DOT com>, gnu-win32 AT cygnus DOT com

---"Pierre A. Humblet" <Pierre DOT Humblet AT eurecom DOT fr> wrote:
>
> At 07:21 PM 11/10/98 -0800, Earnie Boyd wrote:
> >
> >No.  The current working directory is only searched if you contain
a .
> >(period character) in the PATH variable list.  If you want it to be
> >searched first then you'll need to place it first in the PATH; but,
> >this isn't good security practices.
> >
> That's not my experience with bash and ash
> They find commands in the current directory as long as PATH has an
empty
> component (or contains .) .
> ~: cat findit
> #!/bin/sh
> echo You found me
> ~: PATH=/bin
> ~: findit
> BASH.EXE: findit: command not found
> ~: PATH=
> ~: findit
> You found me
> ~: PATH=/bin:
> ~: findit
> You found me
> ~:
> 
> Pierre
> 
> 

Is this a documented feature?  If not then it is most likely a bug and
will stop working this way in some future release?  Of course, it
could be considered a benefit and then documented also, IMHO it is not
a good idea to use undocumented features.

==
-                  \\||//
-------------o0O0--Earnie--0O0o--------------
--          earnie_boyd AT yahoo DOT com          --
-- http://www.freeyellow.com/members5/gw32 --
----------------ooo0O--O0ooo-----------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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