From: Florian Gross Date: 2005-01-20T22:16:02+09:00 Subject: Re: Bad interpreter Chris Bennetts wrote: >> I know what's happening. This can be handled by Ruby in most cases. >> (The kernel just passes along the trailing \r to Ruby's ARGV.) That's >> why I suggested adding the -w flag. (So that the Kernel would not try >> to run the script with an executable called "ruby\r") > > That solves the "bad interpreter" problem nicely, but leaves ruby with a > "-w\r" argument to deal with. As you suggested earlier, if a future > version of Ruby handled stray carriage returns in its arguments, then > the problem would be resolved. Nobu has done a patch for exactly that when I requested this on ruby-core. So all this is indeed going to be quite a bit less problematic in the future. (I was bitten by this behavior by myself and while it's not Ruby's fault it can still try to help.)