RFE: .so filters
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...
Size: 836 bytes
Desc: OpenPGP digital signature
More information about the CGit