[TxMt] csh: Bad : modifier in $ (/). /bin/bash: line 4: : command not found
Allan Odgaard
throw-away-1 at macromates.com
Sun Feb 11 15:07:18 UTC 2007
This is using RubyMate? If so, what version/revision of RubyMate?
Does simpler programs work?
On 4. Jan 2007, at 02:57, Jamie Forrest wrote:
> I am having trouble running a fairly simple Ruby program (below).
> The error that I get in TextMate is:
>
> csh: Bad : modifier in $ (/). /bin/bash: line 4: : command not found
>
> Here's the program (from David A. Black's Ruby for Rails book):
> puts "Reading Celsius temperature value from data file...";
> num = File.read("temp.dat");
> c = num.to_i;
> f = (c * 9/5) + 32;
> puts "Saving result to output file temp.out";
> fh = File.new("temp.out", "w");
> fh.puts f;
> fh.close;
>
> I'm sure there's an easy fix. Thanks,
> Jamie Forrest
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list