lkml.org 
[lkml]   [1999]   [Mar]   [22]   [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
In article <fa.im7mc0v.10cl8h@ifi.uio.no>,
<jb@heva.net.pl> writes:

[#!perl]

What's wrong with
#!/bin/env perl

or even
: # -*-Perl-*-
eval 'exec perl -w -S $0 ${1+"$@"}'
if 0;

I write all my perl scripts like that (I picked up the tricks from the
XEmacs developers list).

Now you only have to fix the incorrect path to 'env' on Linux, it should
be in /bin not /usr/bin, because /bin is where you will find it on
IRIX, AIX, Solaris and everywhere I looked.

- Tor

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