From: Reacher Date: 2008-02-26T07:04:56+09:00 Subject: Re: rake task with arguments On Feb 25, 3:44 pm, Rob Biedenharn wrote: > 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 > R...@AgileConsultingLLC.com When I got my first real job programming, I had no experience with *NIX .. at all. The shell we worked in was tcsh. Currently, everyone in our office uses ksh, but I've been slow to conform, since I'm used to tcsh and it's few but handy niceties. I think the results of this thread may be the poke needed to move to bash.