From: Perl 5 Porters <perl5-porters.nicoh.com>
Date: Mon, 1 Jan 1996 23:11:28 +0000 (+0000)
Subject: Use new config_h.SH STARTPERL #define.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=207d4cd062af604f6bdff602752c11193548c8e7;p=p5sagit%2Fp5-mst-13.2.git

Use new config_h.SH STARTPERL #define.
---

diff --git a/x2p/a2py.c b/x2p/a2py.c
index 54bdce0..454e2dc 100644
--- a/x2p/a2py.c
+++ b/x2p/a2py.c
@@ -153,11 +153,8 @@ register char **env;
     /* second pass to produce new program */
 
     tmpstr = walk(0,0,root,&i,P_MIN);
-    str = str_make("#!");
-    str_cat(str, BIN);
-    str_cat(str, "/perl\neval \"exec ");
-    str_cat(str, BIN);
-    str_cat(str, "/perl -S $0 $*\"\n\
+    str = str_make(STARTPERL);
+    str_cat(str, "\neval 'exec perl -S $0 \"$@\"'\n\
     if $running_under_some_shell;\n\
 			# this emulates #! processing on NIH machines.\n\
 			# (remove #! line above if indigestible)\n\n");