From: Nobuyoshi Nakada Date: 2007-06-11T12:25:51+09:00 Subject: Re: Ruby wildcard command line argument auto expansion Hi, At Sat, 9 Jun 2007 18:39:30 +0900, Michael Jia wrote in [ruby-talk:254917]: > In my case, I want to use 'ARGV[0]' to match filenames in a different > location. But ARGV[0] is not "*.txt" as my expected. It was changed by > ruby. In fact, it is "config.txt" in this case. > > One way to correct it is to always ask user to use single-quoted string: > > C:\working>ruby -e "puts ARGV" '*.txt' > *.txt It's the only way. -- Nobu Nakada