Hacker News new | ask | show | jobs
by xthetrfd 1958 days ago
One area where fish is excellent is IMO interactive shell scripting. No more case..esac and friends. Fish adopts a python-like syntax that makes it ridiculously easy to write loops fast in the terminal.
3 comments

So I read this and thought "wow, indentation would be so stupid to manage in a terminal... even typing python into python's repl is brutal" but then I looked up the syntax for a for loop in fish and it is exactly the same as the syntax in bash except it uses the word "end" instead of "done" and doesn't have "do"... what am I missing?
It's an absolute godsend. Scripting in it feels really intuitive compared to POSIX shells. I find it such a shame that we probably won't get rid of POSIX shells for at least a couple more decades... if that.
Well, oilshell has been positioning itself as an upgrade path forward.
You can have real Python scripting with xonsh. It combines Python ness and shellness very nicely.

I agree that fish is a sweet middle ground spot.