Re:Ubuntu 16.04 (Xenial Xerus)
by pavanky on Thursday April 21, 2016 @10:51AM
(#11542559)
Default on debian is dash.
[ Parent
| on HN ]
And, this page being news about Ubuntu, one should note that this has been true for Ubuntu for fast approaching a decade, now; Debian having followed in the footsteps of Ubuntu, in this regard.
* https://wiki.ubuntu.com/DashAsBinSh
* https://wiki.ubuntu.com/DashAsBinSh/Spec
* https://lists.debian.org/debian-release/2007/07/msg00027.htm...
But bash is installed by default if I'm not terribly mistaken, and it's classified as an essential package. If you put in a bash shebang, it should work.
I have seen several people use #!/bin/sh and write bash code. This is going to break on debian machines when you do ./foo
If more people used #!/usr/bin/env bash, it wouldn't be that big of a deal.
And they would have non portable code.
If they wrote posix compatible shell scripts it wouldn't be any big deal because they'd just work.
Re:Ubuntu 16.04 (Xenial Xerus)
by wildmusings on Friday April 22, 2016 @06:12AM
(#11548122)
There's like five comments from you in this thread and you seem very adamant about people not writing bash scripts. Have you considered that not everyone has the same requirements? Maybe they don't care about targeting systems that don't have bash installed. In that case, they can use the myriad of enhancements that bash offers to improve their productivity and happiness.