This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Problems with .EXE files overriding shell scripts in PATH.
- To: "'Cygwin Users'" <cygwin at cygwin dot com>
- Subject: RE: Problems with .EXE files overriding shell scripts in PATH.
- From: "Sergio Del Rio" <sdelrio at home dot com>
- Date: Mon, 30 Apr 2001 12:30:15 -0700
- Reply-To: <sdelrio at home dot com>
Yes it is.
Regards,
Sergio Del Rio
Templates 4 Business Inc.
-----Original Message-----
From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
Sent: April 30, 2001 12:29 PM
To: sdelrio@home.com
Cc: cygwin@cygwin.com
Subject: Re: Problems with .EXE files overriding shell scripts in PATH.
Sergio Del Rio wrote:
>
> For the most part, all shell scripts that I have are found by bash if they
> are in the PATH.
>
> I am trying to write a script that overrides an existing SQLPLUS.EXE file
> that is also in the path. I created a script called sqlplus and placed it
> into /usr/local/bin which is the first thing in the path. What I notice is
> that the sqlplus shell script is not getting executed at all, the system
is
> executing the SQLPLUS.EXE program which is found later on in the path.
>
> Why does this happen?
>
> How can I get around it?
>
Is the first line of your script `#!/bin/sh'?
Earnie.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple