Re: Mercurial 0.4b vs git patchbomb benchmark
- From
- Daniel Jacobowitz <dan@debian.org>
- Date
- May 2, 2005, 17:18 UTC
- Message-ID
- <20050502171802.GA28045@nevyn.them.org>
- In-Reply-To
- <Pine.LNX.4.58.0505020921080.3594@ppc970.osdl.org>
On Mon, May 02, 2005 at 09:31:06AM -0700, Linus Torvalds wrote:
Show 20 quoted lines
> It's not about environment. > > It's about the fact that many people have things like python in > /usr/local/bin/python, because they compiled it themselves or similar. > > Pretty much the only path you can _really_ depend on for #! stuff is > /bin/sh. > > Any system that doesn't have /bin/sh is so fucked up that it's not worth > worrying about. Anything else can be in /bin, /usr/bin or /usr/local/bin > (and sometimes other strange places). > > That said, I think the /usr/bin/env trick is stupid too. It may be more > portable for various Linux distributions, but if you want _true_ > portability, you use /bin/sh, and you do something like > > #!/bin/sh > exec perl perlscript.pl "$@" > > instead.
Do you know any vaguely Unix-like system where #!/usr/bin/env does not work? I don't; I've used it on Solaris, HP-UX, OSF/1...
-- Daniel Jacobowitz CodeSourcery, LLC