From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz Subject: Re: Mercurial 0.4b vs git patchbomb benchmark Date: Mon, 2 May 2005 13:18:02 -0400 Message-ID: <20050502171802.GA28045@nevyn.them.org> References: <20050430025211.GP17379@opteron.random> <42764C0C.8030604@tmr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Bill Davidsen , Andrea Arcangeli , Matt Mackall , linux-kernel , git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon May 02 19:14:52 2005 Return-path: Received: from vger.kernel.org ([12.107.209.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSeV0-0001ky-BI for gcvg-git@gmane.org; Mon, 02 May 2005 19:14:26 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261645AbVEBRTm (ORCPT ); Mon, 2 May 2005 13:19:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261323AbVEBRTQ (ORCPT ); Mon, 2 May 2005 13:19:16 -0400 Received: from nevyn.them.org ([66.93.172.17]:31446 "EHLO nevyn.them.org") by vger.kernel.org with ESMTP id S261359AbVEBRSM (ORCPT ); Mon, 2 May 2005 13:18:12 -0400 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DSeYU-0007PE-RR; Mon, 02 May 2005 13:18:02 -0400 To: Linus Torvalds Mail-Followup-To: Linus Torvalds , Bill Davidsen , Andrea Arcangeli , Matt Mackall , linux-kernel , git@vger.kernel.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org On Mon, May 02, 2005 at 09:31:06AM -0700, Linus Torvalds wrote: > 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