5 ms·
(author here) Yeah you just repeated what https://oilshell.org/ https://oilshell.org/ is You'd want to be able to go $NEWSH my-bash-script.sh and it should jus
by chubot 3y ago
(author here) Yeah you just repeated what https://oilshell.org/ https://oilshell.org/ is
You'd want to be able to go $NEWSH my-bash-script.sh and it should just work. $NEWSH my-newsh-script.nsh should also work, obviously.
osh my-bash-script.sh # works, it's the most bash-compatible shell by a mile
ysh my-new-script.ysh # works
YSH looks like this - https://www.oilshell.org/release/latest/doc/ysh-tour.html https://www.oilshell.org/release/latest/doc/ysh-tour.html (everything in this doc works, you can try it now)
And then you do
shopt -s ysh:upgrade
to opt into new behavior.
https://www.oilshell.org/release/0.19.0/doc/upgrade-breakage.html https://www.oilshell.org/release/0.19.0/doc/upgrade-breakage...
YSH isn't done yet, but it's coming along nicely -- see the latest status update - https://www.oilshell.org/blog/2023/11/status-update.html https://www.oilshell.org/blog/2023/11/status-update.html
---
The project isn't a solo project anymore! There have been 6 people funded by two NLNet grants, and we just got a third one, mentioned in the post.
If you want it to succeed, then you should try it and report bugs.
One way to view it is that Oils has a 7 year head start on any other project that wants upgrade shell. Like you say, it's a huge amount of work, and it's the ONLY project that's compatible with bash (which BTW is a much bigger job than being compatible with POSIX sh).
Shell became the #6 fastest growing language on Github in 2020, so all those shell scripts people have written in the last few years make the Oils project more valuable. That is, people are writing scripts compatible with OSH at a greater rate than any other new shell (e.g. new shells == ones with precise error messages)
The new command line tools like fd and bat are ALSO compatible with OSH and YSH because they use the Unix process interface :) There have been several shells that want to bundle everything into the shell, but I disagree with that philosophy, because it limits growth to being "inside" the project.
(although YSH has a lot more functionality than bash built-in, like JSON support)
---
People who have contributed are acknowledged in the release announcements.
Testing is a good contribution. Writing weird HN comments isn't a good contribution :-P
There has been some misunderstanding of the project, but very little "hate" ... Mostly encouragement!
- oblio 3y agoI'm going to throw a curveball and say: can I run Oil on Windows/Cygwin? :-) Also, how's the interactive mode? I don't want to just run scripts with it.
- chubot 3y agoIt runs on WSL, not sure about Cygwin Interactive shell screencasts was the last blog post: https://www.oilshell.org/blog/2023/12/screencasts.html https://www.oilshell.org/blog/2023/12/screencasts.html Real Unix users download and build tarballs, they don't wait for the packaging gods to bless them with software :-P