diff options
Diffstat (limited to 'systems/doc/luatex/luatex-tex.tex')
-rw-r--r-- | systems/doc/luatex/luatex-tex.tex | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/systems/doc/luatex/luatex-tex.tex b/systems/doc/luatex/luatex-tex.tex index f8c3d5ac63..4752c25157 100644 --- a/systems/doc/luatex/luatex-tex.tex +++ b/systems/doc/luatex/luatex-tex.tex @@ -96,7 +96,7 @@ If you want to unset a \LUA\ name, you can assign \type {nil} to it. The functio accessors are: \startfunctioncall -lua.setluaname(<string> s,<number> n]) +lua.setluaname(<number> n, <string> s) <string> s = lua.getluaname(<number> n) \stopfunctioncall @@ -2854,6 +2854,21 @@ Returns the kpathsea version string. \stopsubsection +\startsubsection[title={\type {check_permission}}] + +\libindex{check\_permission} + +Checks if the \type{filename} can be executed or not. +Returns \type{1}, \type{filename} or a safe cmd alternative if it can be executed, +otherwise returns \type{0} and an error message. + +\startfunctioncall +<string> res, cmd = kpse.check_permission(filename) +\stopfunctioncall + +\stopsubsection + + \stopsection \stopchapter |