lkml.org 
[lkml]   [1999]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: #!perl - alternative path to script interpreters - patch to 2.2
    Hi Ben.

    > Perhaps for the sake of portability the best way to approach it
    > would be:

    > #!/usr/local/bin/perl5
    > #!perl
    > <code>

    > On linux systems with this support, /usr/local/bin/perl5 would
    > be checked first, if it isn't there then it looks for relative
    > interpreters for `perl'. This would make your hack more backward
    > compatible.

    Probably a better solution would be a patch which says "First try $CMD
    as given. If that doesn't work, search for `basename $CMD` in some
    standard set of directories...

    Best wishes from Riley.

    +----------------------------------------------------------------------+
    | There is something frustrating about the quality and speed of Linux |
    | development, ie., the quality is too high and the speed is too high, |
    | in other words, I can implement this XXXX feature, but I bet someone |
    | else has already done so and is just about to release their patch. |
    +----------------------------------------------------------------------+


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

    \
     
     \ /
      Last update: 2005-03-22 13:50    [W:0.022 / U:0.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site