[perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux
authorSteve Peters <steve@fisharerojo.org>
Tue, 21 Dec 2004 17:36:12 +0000 (17:36 +0000)
committerSteve Peters <steve@fisharerojo.org>
Thu, 27 Nov 2008 05:51:49 +0000 (05:51 +0000)
From: "Steve Peters via RT" <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-32979-103402.11.4873424142094@perl.org>

Applying a four year old patch from myself.  w00t!

p4raw-id: //depot/perl@34943

pod/perlrun.pod

index aea7998..d8e718e 100644 (file)
@@ -77,9 +77,10 @@ Parsing of the #! switches starts wherever "perl" is mentioned in the line.
 The sequences "-*" and "- " are specifically ignored so that you could,
 if you were so inclined, say
 
-    #!/bin/sh -- # -*- perl -*- -p
-    eval 'exec perl -wS $0 ${1+"$@"}'
-        if $running_under_some_shell;
+    #!/bin/sh
+    #! -*-perl-*-
+    eval 'exec perl -x -wS $0 ${1+"$@"}'
+        if 0;
 
 to let Perl see the B<-p> switch.