delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/09/16:25:57

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Fri, 9 Apr 1999 15:25:01 -0500 (CDT)
From: Ares <mich0101 AT tc DOT umn DOT edu>
To: Chris Faylor <cgf AT cygnus DOT com>
cc: dye053 <mitia AT nwu DOT edu>, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: B20.1: Scripts not executed in the current directory (bash)
In-Reply-To: <19990409161150.A1306@cygnus.com>
Message-Id: <Pine.SOL.4.05.9904091524030.16122-100000@garnet.tc.umn.edu>
MIME-Version: 1.0

Or you can invoke the script (or any other executable) with ./foo.pl. I
can't speak much for the Cygwin world, but in the Linux world, this is SOP
for security reasons.

JDM

--------
Jason D. Michaelson         | Debian GNU/      o http://www.debian.org
mich0101 AT tc DOT umn DOT edu         |          _
ares0 AT geocities DOT com         |        / /    _   _     _  _ __  __
Jason DOT D DOT Michaelson AT cdc DOT com  |       / /__  / / / \// //_// \ \/ /
                            |      /____/ /_/ /_/\/ /___/  /_/\_\
http://www.tc.umn.edu/      |
~mich0101                   |   ...because lockups are for convicts...

And the beast shall come forth surrounded by a roiling cliud of
vengeance. The house of the unbelievers shall be razed and they shall
be scorched to the earth. Their tags shall blink until the end of
days. -- The Book of Mozilla, 12:10

"One World, One Web, One Program." -- Bill Gates
"Ein Volk, Ein Reich, Ein Fuhrer." -- Adolph Hitler

On Fri, 9 Apr 1999, Chris Faylor wrote:

> On Fri, Apr 09, 1999 at 02:18:22PM -0500, dye053 wrote:
> >In B20.1 I noticed a problem that I didn't have with B20 release:
> >
> >In bash, scripts with shebang (#!) are not excuted in the current
> >directory, although they are correctly identified as executable files by
> >ls.  On the other hand, scripts located in a different directory are
> >executed without a problem.
> >
> >A workaround is to call the interpreter explicitly, e.g. perl foo.pl
> >
> >Anyone else have this problem?
> 
> Set your PATH environment variable to include the current directory.
> 
> -chris
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> 
> 


--
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