lkml.org 
[lkml]   [2005]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Mercurial 0.4b vs git patchbomb benchmark
    Date
    Linus Torvalds <torvalds@osdl.org> wrote:
    > On Mon, 2 May 2005, Ryan Anderson wrote:
    >> On Mon, May 02, 2005 at 09:31:06AM -0700, Linus Torvalds wrote:

    >> > 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 "$@"
    >> if 0;

    exec may fail.

    #!/bin/sh
    exec perl -x $0 ${1+"$@"} || exit 127
    #!perl

    >> You don't really want Perl to get itself into an exec loop.
    >
    > This would _not_ be "perlscript.pl" itself. This is the shell-script, and
    > it's not called ".pl".

    In this thread, it originally was.
    --

    "Our parents, worse than our grandparents, gave birth to us who are worse than
    they, and we shall in our turn bear offspring still more evil."
    -- Horace (BC 65-8)

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-05-03 03:21    [W:0.027 / U:0.400 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site