From: "Jesús Gabriel y Galán" Date: 2013-02-14T01:00:55+09:00 Subject: Re: Ruby command line options s and S On Wed, Feb 13, 2013 at 4:51 PM, Love U Ruby wrote: > "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 ? Well, this is basic unix usage: $ echo $PATH Jesus.