![](https://secure.gravatar.com/avatar/ed6f43113e3f1cee031ebd13654fc703.jpg?s=120&d=mm&r=g)
On 8/14/2023 9:13 AM, Xavier B. wrote:
It does not work:
\directlua{ 34 require "lualibs-os" 35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc -l")+1))}
What do you run directlua in LMTX? in this case, what does does lualibs-os provide? os.resultof is built into context so that should just work
ok, i did as search on ctan and it looks like that lua file is just the context l-os one renamed so no need to load anything, in fact, loading it might even break the built in when it does overloads Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------