From: Rob Biedenharn Date: 2008-02-26T06:44:31+09:00 Subject: Re: rake task with arguments On Feb 25, 2008, at 3:44 PM, Reacher wrote: > I figured it out > > $ rake foo:bar\[123\] > (in /path/to/my/dir) > num = 123 > > BTW, csh is evil Of course csh is evil! That's nothing new. http://ooblick.com/text/CshProgrammingConsideredHarmful.html This works just fine with bash: rab://tmp $ cat Rakefile namespace :foo do desc 'lol' task :bar, :num do |t, args| puts "num = #{args.num}" end end rab://tmp $ rake foo:bar[123] (in /private/tmp) num = 123 -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com