delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/10/23:20:58

From: willm AT ihug DOT co DOT nz (Will Mooar)
Subject: Re: Problem with /bin mount?
10 Jan 1999 23:20:58 -0800 :
Message-ID: <004501be3d25$0a16c020$c4804dd1.cygnus.gnu-win32@monster>
Mime-Version: 1.0
To: <SWarsMatt AT aol DOT com>, <gnu-win32 AT cygnus DOT com>

>I can't type configure from the sh prompt or the bash prompt to run a
>configure script; I have to type "sh configure" or "bash configure."

This is normal for unix (and cygwin) - it only searches for applications to
run from the PATH environment variable.  If "." is not in the PATH, it won't
find configure in the current directory.

I have seen people mention that this is generally a bad idea, as it may pose
a security threat.  Unfortunately, no-one has elaborated why.  I can't see
why it would be a problem for windows, except that it might accidentally run
the wrong thing if two or more programs exist with the same name, but
function differently.

A simple way to run a program from the current directory is to add "./" to
the beginning of the command line, eg. "./configure"

Kind regards - Will.

-
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