RFE: .so filters
Florian Pritz
bluewind at xinu.at
Fri Jan 10 21:25:18 CET 2014
On 10.01.2014 21:11, John Keeping wrote:
> Forking and using Lua in the child is an interesting idea.
>
> I need to investigate how Lua generally deals with I/O, but it feels
> like it will be simpler to use a simple function interface than deal
> with slurping in the input in Lua.
Looks rather easy to slurp stdin (from http://www.lua.org/pil/21.1.html):
> t = io.read("*all") -- read the whole file
> t = string.gsub(t, ...) -- do the job
> io.write(t) -- write the file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20140110/588c177d/attachment.asc>
More information about the CGit
mailing list