[TxMt] Ruby Run Script errors

Charilaos Skiadas cskiadas at uchicago.edu
Fri Jul 28 03:16:21 UTC 2006


On Jul 27, 2006, at 7:29 PM, Frank Moda III wrote:

> Hi,
> 	I recently got interested in starting to learn ruby.  Since then I  
> have done a few things.  I have installed the newest ruby (1.8.4)  
> to my /usr/local/bin/ .  I also learned about TextMate, so I went  
> and downloaded it.  I played around with it and noticed that i  
> could run the ruby script within textmate using Run Script.   
> However, when I do this, i get two errors.  One is /bin/bash: line  
> 3: cat: command not found.  This is at the beginning.  After it  
> says program exited normally, it says /bin/bash: line 8: rm:  
> command not found.  Also, it doesn't show any of the script as  
> having run normally (didn't output anything).  Does anyone know  
> whats wrong?  Thanks!
>

Looks like your script is executed as a shell script instead of a  
ruby script. What is the first line in the script? What is the  
language setting for the document (should be appearing at the bottom  
of the window.)
Also try to run the "run script" command from the Ruby bundle,  
instead of using its shortcut.

Haris





More information about the textmate mailing list