From: Tim Hunter Date: 2007-06-09T20:13:45+09:00 Subject: Re: Ruby wildcard command line argument auto expansion Michael Jia wrote: > Is there a better way to disbale this auto expansion? > > Thanks > Michael > > >> One way to correct it is to always ask user to use single-quoted string: >> >> C:\working>ruby -e "puts ARGV" '*.txt' >> *.txt >> > > > The filename expansion is a function of the command window, not Ruby. By the time Ruby starts up the expansion has already happened. I think the only way to disable it is to put quotes around the argument. -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]