diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-03-09 20:15:05 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-03-09 20:15:05 +0100 |
commit | dc98ffdc842271d05903846b460fab90d4d83739 (patch) | |
tree | 49603cd805408ebdde3a7eafc59c40279dc7e9ad /tex/context/base/syst-lua.lua | |
parent | 08128a9710f7a34e16f7487b3bccfe7feadb36f1 (diff) | |
download | context-dc98ffdc842271d05903846b460fab90d4d83739.tar.gz |
2015-03-09 19:29:00
Diffstat (limited to 'tex/context/base/syst-lua.lua')
-rw-r--r-- | tex/context/base/syst-lua.lua | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tex/context/base/syst-lua.lua b/tex/context/base/syst-lua.lua index 95f8628ee..c50c5f1ca 100644 --- a/tex/context/base/syst-lua.lua +++ b/tex/context/base/syst-lua.lua @@ -123,13 +123,18 @@ function commands.ntimes(str,n) context(rep(str,n or 1)) end -function commands.write(n,str) - if n == 18 then - os.execute(str) - elseif n == 16 then - logs.report(str) - else - -- at the tex end we can still drop the write - context.writeviatex(n,str) - end +function commands.execute(str) + os.execute(str) -- wrapped in sandbox end + +-- function commands.write(n,str) +-- if n == 18 then +-- os.execute(str) +-- elseif n == 16 then +-- -- immediate +-- logs.report(str) +-- else +-- -- at the tex end we can still drop the write / also delayed vs immediate +-- context.writeviatex(n,str) +-- end +-- end |