4 ms·
> Bash is the default shell Not for nigh on a decade, now. * https://wiki.ubuntu.com/DashAsBinSh https://wiki.ubuntu.com/DashAsBinSh * https://wiki.ubuntu.co
by JdeBP 10y ago
> Bash is the default shell
Not for nigh on a decade, now.
* https://wiki.ubuntu.com/DashAsBinSh https://wiki.ubuntu.com/DashAsBinSh
* https://wiki.ubuntu.com/DashAsBinSh/Spec https://wiki.ubuntu.com/DashAsBinSh/Spec
* https://lists.debian.org/debian-release/2007/07/msg00027.html https://lists.debian.org/debian-release/2007/07/msg00027.htm...
* https://wiki.debian.org/DashAsBinSh https://wiki.debian.org/DashAsBinSh
- nailer 10y agoBourne shell being replaced as /bin/sh by dash doesn't change anything: Linux and OSX don't use /bin/sh as the default shell.
- JdeBP 10y ago> Linux and OSX don't use /bin/sh as the default shell. You didn't even read the first sentence of the first hyperlinked page.
- the_why_of_y 10y agoI believe xe meant "default login shell". Also, "Bourne Again shell", while we're complaining about missing words :-)
- nailer 10y agoMy username is nailer not xe, but you're right, I meant default login shell when I wrote 'default shell', rather than what bin sh is linked to. Even if bin sh links to bash, bash will still run a bin sh script in Bourne shell mode, stripping newer features, in some cases. Hence why proper scripts alway specify bash explicitly. However I meant Bourne shell when I wrote 'ignore all the good things bash brings and write everything in Bourne shell.' Bourne shell being the original /bin/sh (though it's murky).
- JdeBP 10y agoXe would have been a bit daft to mean that, given the headline topic as well as that the conversation so far has dealt in shell scripts and shell script interpreters, to which the choice of login shell is almost wholly irrelevant.
- nailer 10y agoYes I did. Proper shell scripts specify their actual shell - ie, bash scripts use bash as their interpreter. Your linked article mentions this explicitly. Do, again: whether bin sh is Bourne or Dash doesn't change anything, because a properly written script will specify its interpreter.