2 ms·
/bin/bash is on literally every machine I ever touch. It is on every Debian machine. It is on every Ubuntu machine. It is on every OS X machine. It is on every
by eropple 12y ago
/bin/bash is on literally every machine I ever touch. It is on every Debian machine. It is on every Ubuntu machine. It is on every OS X machine. It is on every Windows (!) machine. And there are plenty of operations that are significantly more cumbersome to write in Ruby--otherwise, sure, I would do so. Backticks are nice, but there's no `set -e` (that I am aware of) and it becomes a huge hassle to do things in a smart, error-checking way.
- lutusp 12y ago> /bin/bash is on literally every machine I ever touch. It is on every Debian machine. It is on every Ubuntu machine. It is on every OS X machine. It is on every Windows (!) machine. Yes. Yes. Yes. Yes. No (unless Cygwin is installed).
- eropple 12y ago/bin/bash is on literally every machine I ever touch. Did you miss the operative phrase? (I have init scripts for Cygwin, too, because I need Windows but life is too short for CSRSS.)
- lutusp 12y ago> /bin/bash is on literally every machine I ever touch. Did you miss the operative phrase? You intended that subjunctive clause to apply to all the sentences, an intent I missed. My mistake. :) This may soon become a tempest in a teapot, as patched Bash versions are now appearing. I just patched all my machines.
- stephenr 12y agoNo-one claimed Bash isn't widely distributed and installed by default. However, unless you are patching and compiling the same version of Bash, you absolutely do not have the same version on all those machines, and that is the whole reason NOT to target Bash in shell scripts - its features are not always consistent/compatible across versions.