r/oilshell • u/oilshell • Nov 13 '24
Oils 0.23.0 - Writing YSH Code, User Feedback, and Bug Bounty
https://www.oilshell.org/blog/2024/11/release-0.23.0.html
9
Upvotes
r/oilshell • u/oilshell • Nov 13 '24
2
u/simonmic Nov 15 '24 edited Nov 15 '24
I'm a longtime bash user using OSH as my default shell for a year or so now, with only minor noticeable issues. I haven't yet had a need to invest time in the still-being-designed YSH.
I feel OSH is the killer feature of the Oils project - 1. a truly compatible, cleaned up, principled bash replacement, with 2. optional knobs you can turn to gain more correctness and power, and 3. the promise of easy interop or migration to the next-gen YSH language, providing future-proofness.
OSH alone is already worthwhile and succeeding. It also unlocks the way forward - without OSH, neither YSH or any other new shell language can ever really get traction. With OSH's support for gradual cleanup, it's possible.
1
u/digitalsignalperson Nov 13 '24
Do you have any suggestions for how to think about use of OSH vs YSH? Here's some questions I'm wondering about:
On the last point, this is something I think about as I like using fish as my default shell, but actually prefer writing scripts in bash, and often want to run bash snippets without dropping into a new shell or having to convert to fish. Unfortunately history is kind of messy this way. Similar with python, sometimes I drop into ipython to do something but then sort of lose the record of it.
One idea I was playing with at one point was trying to make a sort of "virtual environment" where you can activate/deactivate different shells, and you get one history with a mix of different languages. But not perfect because the history doesn't know what language it is, and you have to manually activate/deactivate things. But a smart shell could have multiple kernels running and just pipe the commands to whichever language the history item is tagged.