[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

Austin Ziegler

10/2/2003 10:37:00 PM

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