From: Rob Sanheim Date: 2007-02-01T01:59:24+09:00 Subject: Re: proper usr/bin/env ruby shebang On 1/31/07, pat eyler wrote: > On 1/31/07, Rob Sanheim wrote: > > I'm trying to convert some bash scripts to use /usr/bin/env ruby > > instead of hardcoded shebang lines, and running into an issue. Using > > this: > > > > #!/usr/bin/env ruby -w > > > > results in this error: > > > > /usr/bin/env: ruby -w: No such file or directory > > > > If I remove the -w, it runs and works fine. But of course, I want > > the warnings check in there... > > > > This works fine from the command line: > > > > rsanheim@seekingalpha06a [/sa/bin]$ /usr/bin/env ruby -w > > FOO = "hi" > > FOO = "bye" > > -:2: warning: already initialized constant FOO > > > > Any ideas? Forgive me if I'm missing something obvious here...This is > > red hat 4, I believe... > > Either you're dating yourself, or you mean RHEL 4 ... (I still have > manuals from both RHL 3 and 4 (and maybe install media if I look > hard enough)) > You're right, I meant RHEL4. - rob