On May 19, 5:39   宮 
> On May 18, 11:15     
>
>
>
>
>
> > On 19.05.2009 05:33, Calvin wrote:
>
> > > When I type this into the terminal it works... but I am wondering if I
> > > am going about things the right way:
>
> > > $ /opt/local/bin/ruby1.9 -v
>
> > > $ cd
>
> > > $ cd Desktop
>
> > > $ cd programs
>
> > > $ ruby1.9 calc.rb
>
> > > then the math equation answer from calc.rb shows up in the terminal.
> > > Am I correct in thinking that ruby 1.9.1 is the ruby that is working
> > > and not ruby 1.8.6?
>
> > It's likely but program names can be changed arbitrarily.  
> > to be sure you can easily find out by entering
>
> > ruby1.9 -v
>
> > Kind regards
>
> > robert
>
> > --
> > remember.guy do |as, often| as.you_can - without endhttp://blog.rubybestpractices.com/-Hide quoted text -
>
> > - Show quoted text -
>
> Thanks Robert!
>
> When I type in Ruby1.9 -v i get: ruby 1.9.1p129 with some other text.- Hide quoted text -
>
> - Show quoted text -

I am also wondering if I could just type this into my terminal to get
ruby1.9 to run a ruby file:

$ cd


$ cd Desktop


$ cd programs


$ ruby1.9 calc.rb

Is this correct or incorrect?

Thanks for your time,

Calvin