Messages in this thread | | | Date | Tue, 23 Mar 1999 19:46:05 +0900 (JST) | From | Tom Holroyd <> | Subject | Re: [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/
| |