lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [OFFTOPIC] #!perl - alternative path to script interpreters
On Tue, 23 Mar 1999, David Luyer wrote:

>===
>#!/bin/sh
>
>eval 'exec perl -w -S $0 ${1+"$@"}'
> if 0;
>===

On my system, this produces

/bin/sh: -w: bad option

(/bin/sh is GNU bash 1.14.7(1)) and besides, to quote from 'man perlrun':

"If the #! line does not contain the word "perl", the
program named after the #! is executed instead of the Perl
interpreter." [perl 5.004_01]

So this would never work, nor would the "continued comment" trick they use
with Tcl.


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