From: Ryan Davis Date: 2008-06-29T04:41:04+09:00 Subject: Re: changing the shebang of ruby files best way ? On Jun 27, 2008, at 13:22 , Une Bévue wrote: > I've a lot of ruby files (grabed from net) having a wrong shebang > for my > setup. > > actual shebang is : > #!/usr/bin/ruby -w > > and i need to change it to : > #! /usr/bin/env ruby -w the problem is that /usr/bin/env absolutely sucks on linux. -w is not only NOT passed as an argument to "ruby", it is considered part of ruby (eg "ruby -w") and horks the exec. If you're tweaking shebang lines JUST FOR YOU, this is fine... but I get a bunch of tickets filed against my software that it doesn't work for them (mitigated by installing via rubygems). I try to tell them to file a bug against their linux distro, but they don't seem to agree with me most of the time. :)