3 ms·
would be nicer if it borrowed syntax from a subset of an existing high-level language
by platz 13y ago
would be nicer if it borrowed syntax from a subset of an existing high-level language
- hnriot 13y agohost> python that's all you need. ls is a little more tricky but nothing that a very simple init.py couldn't fix, then you'd have the full and awesome power of python to do shell things. We don't need a new *sh that half assed implements a language otherwise we'll just end up with another syntactically primitive language like bash, zsh, etc.
- justincormack 13y agoMy side project ljsyscall [1] is a LuaJIT wrapper for the system call and other kernel APIs (eg netlink to configure networking). Its not really designed as a shell per se (although you can use it like that), but it is designed to expose Lua data structures for the output of stuff - ls will return an iterator, network interfaces are hash tables and you can modify the components to reconfigure etc. [1] https://github.com/justincormack/ljsyscall https://github.com/justincormack/ljsyscall