4 ms·
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
by xthetrfd 6y 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.
- bool3max 6y agoIt'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.
- O_H_E 6y agoWell, oilshell has been positioning itself as an upgrade path forward.
- beagle3 6y agoYou 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.
- saurik 6y agoSo 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?