From: Rob Biedenharn Date: 2007-06-10T11:54:28+09:00 Subject: Re: Ruby wildcard command line argument auto expansion OK, then it look like your 'ruby' really is doing some form of filename expansion for command-line arguments. However, not using Windows myself, there's no way that I could help you more than this. I do find it interesting though. -Rob On Jun 9, 2007, at 6:16 PM, Michael Jia wrote: > Rob, the result is: > > C:\working>ruby -e "puts ARGV.join(' - ')" *.txt > config.txt - tips.txt > > C:\working>ruby -e "puts ARGV.join(' - ')" "*.txt" > config.txt - tips.txt > > Thanks > Michael > > Rob Biedenharn wrote: >> In that case, you should run these two commands: >> >> c:\working> ruby -e "puts ARGV.join(' - ')" *.txt >> >> c:\working> ruby -e "puts ARGV.join(' - ')" "*.txt" >> >> and they should produce the same output >> (i.e., "config.txt - tips.txt" or "tips.txt - config.txt") >> if the work is being done by the interpreter. >> >> If one of them produces simply "*.txt" (probably the second), then >> something different is going on. >> >> -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com