3 ms·
> Why not work towards using python/JavaScript as shell languages? I always refer to this awesome answer to that question: https://stackoverflow.com/a/3640403
by matheusmoreira 4y ago
> Why not work towards using python/JavaScript as shell languages?
I always refer to this awesome answer to that question:
https://stackoverflow.com/a/3640403/512904 https://stackoverflow.com/a/3640403/512904
- maegul 4y agoNice run down. But in this context it seems to boil down to > I have the feeling that trying to address these points by bolting features or DSLs onto a general-purpose programming language doesn't work. At least, I have yet to see a convincing implementation of it. … and what is worth doing, a new shell or new features in an old language, which isn’t addressed by that post AFAICT.
- chubot 4y agoA short answer would be that dozens of projects like this already exist and have existed for decades (scsh was mentioned in this thread), and they aren't widely used as shell replacements: https://github.com/oilshell/oil/wiki/Internal-DSLs-for-Shell https://github.com/oilshell/oil/wiki/Internal-DSLs-for-Shell https://github.com/oilshell/oil/wiki/Alternative-Shells https://github.com/oilshell/oil/wiki/Alternative-Shells It doesn't mean they aren't useful, but we still need a better successor to Bourne shell / bash.