On Thu, 16 Sep 2010 13:11:36 -0500, Charles R.
[email protected] wrote:
How do I run that same program when I copy it to my Mac?
You do more or less the same thing, only on the Mac you’d open
Terminal, then cd to wherever you place the file. Note, however, that
on a Mac you’d use forward slashes instead of backslashes in the path;
I opened terminal in that directory (using Path Finder), and tried the
cd “/C:/Documents and Settings/brazee/My Documents/code/Ruby”
Last login: Thu Sep 16 18:53:59 on ttys000
Kernel Information: Darwin 10.4.0 i386
\e[0;33mGNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright © 2007 Free Software Foundation, Inc.
\e[1;30mUptime: 18:55 up 4 days, 1:16, 3 users, load averages: 0.22
\e[1;30mServer time is: Thu Sep 16 18:55:01 MDT 2010
~ > cd “/C:/Documents and Settings/brazee/My Documents/code/Ruby”
/C:/Documents and Settings/brazee/My Documents/code/Ruby > ls
99Bottles.rb 99BottlesR.rb Hello.rb
/C:/Documents and Settings/brazee/My Documents/code/Ruby > hello.rb
-bash: hello.rb: command not found
/C:/Documents and Settings/brazee/My Documents/code/Ruby > Hello.rb
-bash: Hello.rb: command not found
/C:/Documents and Settings/brazee/My Documents/code/Ruby >
(Yes, that is on my Mac - I synchronize some documents between work
and home by having that weird path).
“In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department.”