From: Eric Hodel Date: 2005-05-30T13:29:45+09:00 Subject: Re: How to find ruby? On 29 May 2005, at 16:40, nobu.nokada@softhome.net wrote: > 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. Even more importantly, not every shell has the same path (cron). -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04