From: Love U Ruby Date: 2013-02-14T00:51:16+09:00 Subject: Re: Ruby command line options s and S "Jesús Gabriel y Galán" wrote in post #1096683: > On Wed, Feb 13, 2013 at 3:59 PM, Love U Ruby > wrote: >> Can anyone help me to understand the difference between s and S with >> small snippets? > > -S tells Ruby to look into the $PATH variable when searching for the > script you want to run. > For example, say you have a test.rb in /home/user/bin/test.rb > and $PATH includes that folder. You could call ruby -S test.rb from > anywhere and Ruby will get test.rb from /home/user/bin @Jesus - nice explanation you have given. Could you tell me how can I see the $PATH contents in UBUNTU ? Thanks -- Posted via http://www.ruby-forum.com/.