4 ms·
Why speak of hate? The main problem I have with bashisms is that most people who use them just assume everyone runs bash as default shell. Instead of specifyin
by wott 6y ago
Why speak of hate?
The main problem I have with bashisms is that most people who use them just assume everyone runs bash as default shell. Instead of specifying xxx/bin/bash in their script, they use xxx/bin/sh (and they don't run any check about which kind of shell is running to ensure that bash is running and fail gracefully otherwise, and they don't either document that the script must be run from bash).
There's no problem about writing in a specific language, if you clearly say you did. If I stretch the example a bit, I wouldn't like a Python script to start with xxx/bin/ruby.