5 ms·
Or bash, since it will be installed everywhere, you don't have to get it, and most scripts you'll find online will work on it.
by coldtea 11y ago
Or bash, since it will be installed everywhere, you don't have to get it, and most scripts you'll find online will work on it.
- MikeKusold 11y agoThis is a non-issue. The `!#/bin/bash` at the top of scripts will tell the interpreter which shell to run. And any one liner I've found online for bash has also worked on zsh (for me), but even if it didn't: `bash -c ls`
- aerique 11y agoYes exactly. Today I learned people actually write / use scripts without specifying the interpreter at the top of the script. This is like writing a Ruby script and expecting it to work when calling it with the Python interpreter.
- jlgaddis 11y agoYeah, it's actually not installed everywhere (e.g. FreeBSD).
- coldtea 11y agoAnywhere that matters. Besides, still more places than fish or zsh.