From: 7stud -- Date: 2009-02-14T17:05:19+09:00 Subject: Re: how to require more than one thing from the command line 7stud -- wrote: > ...and this does nothing: > > $ ruby -e 'x=10;' r1test.rb > $ 4) Why does that do nothing? Here is another example: r1test.rb ------- puts "world" $ ruby -e 'puts "hello"' r1test.rb hello $ I expected the output to be: $ ruby -e 'puts "hello"' r1test.rb hello world $ According to pickaxe2, p 177-178: ------------------ A ruby command line consists of three parts: options to the Ruby interpreter, optionally the name of the program to run, and optionally a set of arguments for that program. ruby [options] [--] [programfile] [arguments] Command-Line Options -e 'command' If programfile is omitted when -e is present, execution stops after the -e commands have been run. -------------------- To me that implies that if programfile is present, then programfile will execute after the -e commands. -- Posted via http://www.ruby-forum.com/.