develooper Front page | perl.perl5.changes | Postings from November 2008

Change 34943: [perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux

From:
Steve Peters
Date:
November 26, 2008 22:00
Subject:
Change 34943: [perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux
Change 34943 by stevep@stevep-kirk on 2008/11/27 05:51:49

	Subject: [perl #32979] [PATCH] perlrun #!/bin/sh incantation n.g. 4 linux
	From: "Steve Peters via RT" <perlbug-followup@perl.org>
	Date: 21 Dec 2004 17:36:12 -0000
	Message-ID: <rt-3.0.11-32979-103402.11.4873424142094@perl.org>
	
	Applying a four year old patch from myself.  w00t!

Affected files ...

... //depot/perl/pod/perlrun.pod#172 edit

Differences ...

==== //depot/perl/pod/perlrun.pod#172 (text) ====
Index: perl/pod/perlrun.pod
--- perl/pod/perlrun.pod#171~34696~	2008-11-02 09:09:10.000000000 -0800
+++ perl/pod/perlrun.pod	2008-11-26 21:51:49.000000000 -0800
@@ -77,9 +77,10 @@
 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.
 
End of Patch.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About