small medium large xlarge

24 Sep 2012, 08:15
Bryan Lockwood (3 posts)

I’ve been reading the book in anticipation of giving it to my son to get him started with programming and Ruby. It seems to me a couple of things have been left out, such as the facts that 1.) in order to be executable from the shell, a “chmod +x calc.rb” must be performed, and 2.) in order to invoke it, one will have to give a full pathname, like for instance “./calc.rb”. Certainly an explanation of PATH would be overkill, but this much is necessary for success.

As a footnote, I really like the book. Well written. Congratulations on a good job!

24 Sep 2012, 14:47
Chris Pine (63 posts)

Except that I tell people to run their programs with “ruby calc.rb”, thus avoiding both problems (on all platforms).


But by all means, teach your son these things!

  You must be logged in to comment