summaryrefslogtreecommitdiff
path: root/makeaperl.SH
diff options
context:
space:
mode:
Diffstat (limited to 'makeaperl.SH')
-rwxr-xr-xmakeaperl.SH4
1 files changed, 2 insertions, 2 deletions
diff --git a/makeaperl.SH b/makeaperl.SH
index d621e67f03..16b74350e0 100755
--- a/makeaperl.SH
+++ b/makeaperl.SH
@@ -20,8 +20,8 @@ echo "Extracting makeaperl (with variable substitutions)"
rm -f makeaperl
$spitshell >makeaperl <<!GROK!THIS!
$startperl
- eval 'exec perl -S \$0 "\$@"'
- if 0;
+ eval 'exec $perlpath -S \$0 \${1+"\$@"}'
+ if \$running_under_some_shell;
!GROK!THIS!
$spitshell >>makeaperl <<'!NO!SUBS!'