From: Paul Denize Date: 2009-06-16T09:15:58+09:00 Subject: Re: Ruby wildcard command line argument auto expansion Shin guey Wong wrote: > I think you should use '*.txt' instead of "*.txt". Here the output from > my WinXP: I think Ruby is wrong to change the OS standard. On unix the standard is to expand as filenames (fine). On windows the standard is NOT to expand wildcards. I use wildcards for non filename lookups (i.e. to match users in an LDAP) Example in Pthon C:\> finduser.py pa* user paul found Same in Ruby C:\> finduser.rb pa* - and it goes looking for a user with a name matching some file in the current directory. I accept that on unix it SHOULD require quotes or escaping but not on Windows. On windows the ARGV should be "pa*" as typed. -- Posted via http://www.ruby-forum.com/.