r/lua • u/Flashy_Bonus_6576 • Jun 02 '26
Im Rewriting GNU Coreutils in Lua5.4
https://github.com/Oflucoder/luacoreutils
Here it is. Using LuaPosix. 6 tools already done. Im learning as a write.
feel free to Assist, Make requests and Commit.
14
Upvotes
8
u/xPhoenix777 Jun 02 '26
Why?
2
u/Flashy_Bonus_6576 Jun 03 '26
WC is done. Mkdir is in the way.
2
u/Old_County5271 Jun 04 '26 edited Jun 04 '26
https://github.com/Oflucoder/luacoreutils/blob/main/echo.lua
Why is this so complicated? echo is just
https://github.com/Oflucoder/luacoreutils/blob/main/rmdir.lua
indentation is off... weird.
Overall, Very C like code.
2
u/CommonYear2589 Jun 09 '26
Tienes pensado implementar todo coreutils?
1
u/Flashy_Bonus_6576 Jun 02 '26
turns out had to study ans sleep, wc is mostly done.
1
u/Old_County5271 Jun 07 '26
If you need inspiration or whatever, I also started writing this a while back. But its not great at all. I wanted to write versions without a single require and with require. but then I got burnt out and stopped.
https://github.com/Nomarian/luabox
1
u/ItsJxJo_ Jun 09 '26
oh hey! i'm also working on the exact same thing you're working on a few weeks earlier before you planned on doing it, my repository is private though but i'll make it public soon
https://github.com/JxJo1/lua-coreutils
either way keep up the great work and good luck with the commands :-)