From: nobu.nokada@... Date: 2005-05-30T08:40:20+09:00 Subject: Re: How to find ruby? Hi, At Mon, 30 May 2005 08:05:40 +0900, Mark Probert wrote in [ruby-talk:143962]: > So, what do other people normally do when they have this kind of situation > when it comes to the shebang line? I'd rather do it in some generic manner > rather than have a substitution script run at install time (though that is an > option). $ cat a.rb #!/bin/sh exec ruby -x "$0" ${1+"$@"} #! ruby -s p $foo $ ./a.rb -foo=123 "123" But I feel the substitution is better. setup.rb [1] would do it. Note that all platforms might not have env under /usr/bin. [1] http://raa.ruby-lang.org/project/setup -- Nobu Nakada