aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xPolygLua.lua2
-rwxr-xr-xtest_.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/PolygLua.lua b/PolygLua.lua
index ee775eb..727e62c 100755
--- a/PolygLua.lua
+++ b/PolygLua.lua
@@ -209,6 +209,8 @@ __ = function(c)
209 exe.scriptFile = os.tmpname() 209 exe.scriptFile = os.tmpname()
210 D('Creating temporary script file at ' .. exe.scriptFile) 210 D('Creating temporary script file at ' .. exe.scriptFile)
211 exe.cmd = exe.cmd .. l:sub(3) .. ' ' .. exe.scriptFile .. ' ; ' 211 exe.cmd = exe.cmd .. l:sub(3) .. ' ' .. exe.scriptFile .. ' ; '
212 -- PHP wants this to be executable.
213 __('chmod u+x ' .. exe.scriptFile)
212 end 214 end
213 exe.script = exe.script .. l .. '\n' 215 exe.script = exe.script .. l .. '\n'
214 else 216 else
diff --git a/test_.lua b/test_.lua
index a589a00..80e1786 100755
--- a/test_.lua
+++ b/test_.lua
@@ -121,11 +121,9 @@ __[[#!/usr/bin/perl
121]]:log():show():Do() 121]]:log():show():Do()
122print('') 122print('')
123 123
124-- No idea why this isn't working. 124__[[#!/usr/bin/env php
125__[[#!/usr/bin/php
126<?php 125<?php
127 print("Hello world from PHP."); 126 print("G'day world from php.\n");
128?>
129]]:log():show():Do() 127]]:log():show():Do()
130print('') 128print('')
131 129