From: Garance A Drosehn Date: 2008-07-21T05:32:55+09:00 Subject: Re: changing the shebang of ruby files best way ? On Mon, Jun 30, 2008 at 4:31 PM, Marc Heiler wrote: > Actually relying on env in itself as absolute path is pretty weird. > After all, env is supposed to do away with the problems imposed > by the FHS. It is a little weird, but I think it's the best tactic we've got for now. > I wonder whether the first shebang line could not just simply be "env" > instead (or the binary in question, without absolute path) and then > there would be a simple file where one could tell env which path > should be used. The problem is getting this new idea implemented on a large number of platforms. If you are writing scripts for a single platform (say, "redhat linux"), then there is no problem using '/bin/env' or '/usr/bin/env' (both of which exist on the linux machine I'm looking at). If you're going to run your scripts on many platforms, and if you do not like the hard-coded path to 'env', then you need to come up with some new solution. The problem is that you then have to get *that* solution implemented on every platform that you care about. Until you do get it available everywhere, then you're going to have to fall back to some other solution for some of the platforms. -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA