Re:Ubuntu 16.04 (Xenial Xerus)
by bryanlarsen on Thursday April 21, 2016 @11:53AM
(#11543072)
That's why I always put "#!/usr/bin/env bash" at the top of my scripts. Most were written to be portable, but unless it's been well tested, it's best to consider it not portable. Fail early and predictably rather than in strange ways.
[ Parent
| on HN ]
That.. Isn't the solution. The point is that bash is not a good target for shell scripts, not that you should use env to detect the location of bash.