Mercurial Hosting > luan
diff src/luan/modules/http/tools/Shell.luan @ 1521:d3e61cd2aca0
docs and shell bug fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 25 Jun 2020 23:17:14 -0600 |
parents | d9a5405a3102 |
children | c922446f53aa |
line wrap: on
line diff
--- a/src/luan/modules/http/tools/Shell.luan Sun Jun 21 18:14:13 2020 -0600 +++ b/src/luan/modules/http/tools/Shell.luan Thu Jun 25 23:17:14 2020 -0600 @@ -33,11 +33,13 @@ function fns.run(cmd) try + local line try - return load("return "..cmd,"<web_shell>",env) + line = load("return "..cmd,"<web_shell>",env) catch e - return load(cmd,"<web_shell>",env) + line = load(cmd,"<web_shell>",env) end + return line() catch e -- Io.print_to(Io.stderr,e) return to_string(e)