This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: cygwin b20 bash path usage?
- To: earnie_boyd at yahoo dot com, William D Kirby <wdkirby at ix dot netcom dot com>, gnu-win32 at cygnus dot com
- Subject: Re: cygwin b20 bash path usage?
- From: "Pierre A. Humblet" <Pierre dot Humblet at eurecom dot fr>
- Date: Wed, 11 Nov 1998 23:06:00 -0500
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
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".