Re:The shok command shell
by platz on Sunday December 29, 2013 @01:14AM
(#6978635)
would be nicer if it borrowed syntax from a subset of an existing high-level language
[ Parent
| on HN ]
Re:The shok command shell
by justincormack on Sunday December 29, 2013 @06:14AM
(#6979221)
My 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.
host> 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.
Maybe it turns out brilliant and we realise we do need it.