[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Strange Win32 ARGV problem

Patrick Bennett

10/2/2003 10:49:00 PM

I'll re-post my message then, as you clearly didn't read it. :(
Ruby *does* perform wildcard expansion w/ win32, but only sometimes, and
to make matters worse it is also munging the argv list and combining
multiple arguments into a single argv element.


-----Original Message-----
From: Austin Ziegler [mailto:austin@halostatue.ca]
Sent: Thursday, October 02, 2003 5:37 PM
To: ruby-talk ML
Subject: Re: Strange Win32 ARGV problem


Patrick: please note that you are apparently HTML format messages, which
makes it hard to read what you have written. (This is why I haven't
quoted anything from you -- the formatting was too badly messed up.)

In answer to your question, you have been bitten by a significant
difference between the way that Unix and Windows command lines work.
When you do a "*" in Unix, the SHELL (bash, zsh, etc.) expands the
directory entries for you ... even if you don't want it to do so.[1] On
Windows, however, that responsibility lies exclusively with the program.

In Windows, you'll need to use the patterns you have been given with the
Dir#[] method.

-austin
--
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.10.02
* 18.32.04