17 May
2012
17 May
'12
8:52 a.m.
... Finally, I use the following to avoid ' in arguments and to keep " to os.execute(): ---- \bgroup \catcode`\%=11 \ctxlua{os.execute(([[echo lua -e "print 'EXECUTE'"]]):gsub("'(.-)'", "[[%1]]"))} \egroup % Or: \startluacode os.execute(([[echo lua -e "print 'EXECUTE'"]]):gsub("'(.-)'", "[[%1]]")) \stopluacode \starttext A \stoptext ---- None of both solutions are "pure" as I'd imagine but they seem to work. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038