Question about GetoptLong

Hi,

···

At Thu, 1 Aug 2002 15:02:06 +0900, Patrick Bennett wrote:

then it works. Unfortunately, all of the users of my (upcoming)
scripts will be running the scripts by simply typing the name of the
script (without .rb), and windows (via the PATHEXT extensions) will
automatically treat it as an executable and call ruby for that
argument. Is it not possible to read from stdin when the programs are
launched this way? Any ideas on why it doesn’t work?

Once I’ve heard same issue occurs also with Perl in that way.
Apparently, it seems a problem cygwin and cmd.exe…, but I
don’t know how to solve it. Sorry.


Nobu Nakada

Hi,

···

At Thu, 1 Aug 2002 15:06:18 +0900, Patrick Bennett wrote:

Is there any way (windows / Ruby 1.6.6) to disable the automatic
filename expansion?

c:> test.rb *

c:> test.rb '
c:> test.rb "
"

Or if you run cygwin ruby from non-cygwin shell, add “noglob” to
environment variable CYGWIN.

c:> set CYGWIN=%CYGWIN% noglob


Nobu Nakada