From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-11-26T05:25:09+09:00 Subject: Re: [Mac OS X] having three ruby versions installed Paul Lutus wrote: > > I desagree totally about what you said. > > You can't disagree that your system isn't working as it should. If that were > true, you wouldn't have posted. the prob doesn't come from the shebang, it is specific to ONE script, i don't know why, for the time being, but i did, in the mean time a test "shebang.rb" and it works great as expected either by using : ./shebang.rb one two three four (the script needs args) or : /opt/local/bin/ruby shebang.rb five six seven i suspected a wrong char but my text editor (able to view invisible chars) doesn't present anything wrong... i've put all of this stuff here : i did a ktrace over the faulty script "wav2xml.rb" but i'm not skilled enough to interpret it. > > > The prob, it is clear enough for me now, arroses from Apple's faulty > > shell since 2 or 3 years. The "/usr/bin/env" doesn't work correctly this > > has nothing to do with the three version i have. i've posted that point onto a french mailing list and the list maintainer (much more skilled than me, afaik) said it doesn't agree with that it is him having advice doing a "shebang.rb" test and also afterwards a ktrace. OK, i got the "solution" right now it is MY writing faulty effectively in the shebang instead of writing : #!/usr/bin/env ruby -w i DO HAVE writen : #/usr/bin/env ruby -w that's to say i've forgotten the "bang" of shebang "!"... right now the script is OK in any case... > > Yes, I understand that. So instead of using: > > /usr/bin/env ruby -w > > You can instead use: > > /usr/local/bin/ruby -w > > On ALL your Ruby scripts, no matter how numerous they become, and then, when > you want to change Ruby versions, just change the destination for the > symlink located at /usr/local/bin/ruby. OK i agree that's a solution but with this solution the script won't work on another computer where the default ruby is in /usr/bin/ruby... -- une b�vue