YSH, or the shell formally known as oil, is touted as a possible upgrade path from Bash.
This is the first in a three-part series of posts re-introducing the language.
- Reviewing YSH (you are here)
- Sketches of YSH Features
- YSH, Narrow Waists, and Perlis-Thompson Problems (Not yet released)
I need to disclaim that I am not affiliated with the project, and have actually been pretty critical of it in the past. But I tend to agree with the author’s reasoning across most of the blog, so I believe there is real merit to the shell.
Who knows, maybe in a few years we’ll all be writing YSH!
At what is this better than zsh, bash or fish? What make u switch to ysh?
I haven’t switched to ysh. I personally use Zsh for my interactive shell, but I write my scripts in a variety of shells.
You can start with Ysh in its Bash-compatible mode, individually enable new features with
shopt
. Those features include:$foo
by default (this is shared by Zsh and Fish)( )
in tests,$[ ]
for string splicing and@[ ]
for array splicing)cd to/somewhere { echo $PWD;}