lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: #!perl - alternative path to script interpreters - patch to 2.2
Date
In article <cistron.199903221455.PAA10243@pallas.spacetec.no>,
Tor Arntsen <tor@spacetec.no> wrote:
>In article <fa.im7mc0v.10cl8h@ifi.uio.no>,
> <jb@heva.net.pl> writes:
>
>[#!perl]
>
>What's wrong with
>#!/bin/env perl

What's wrong with:

echo ":perl:M::#\!perl::/usr/bin/perl:" > /proc/sys/fs/binfmt_misc/register

If you do this all scripts starting with #!perl will be executed
with /usr/bin/perl as the interpreter. Same goes for #!sh, #!wish etc

Mike.
--
Indifference will certainly be the downfall of mankind, but who cares?

-
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.057 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site