changeset 152:a9391f914aba

minor fix git-svn-id: https://luan-java.googlecode.com/svn/trunk@153 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 16 Jun 2014 10:50:40 +0000
parents c9100f29fae0
children fa03671f59a0
files src/luan/tools/web_shell.luan
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/tools/web_shell.luan	Mon Jun 16 10:37:06 2014 +0000
+++ b/src/luan/tools/web_shell.luan	Mon Jun 16 10:50:40 2014 +0000
@@ -3,6 +3,7 @@
 per_session = true
 
 local history = {}
+local env = {}
 
 Io.stdout = {}
 function Io.stdout.write(...)
@@ -19,7 +20,7 @@
 		if cmd ~= nil then
 			print( "% "..cmd )
 			try
-				local line = load(cmd,"<web_shell>",true,true);
+				local line = load(cmd,"<web_shell>",env,true);
 				Debug.print_if_something( line() )
 			catch e do
 				Io.print_to(Io.stderr,e)