-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2040
Turiok edited this page Feb 16, 2025
·
5 revisions
Note: Removed in v0.4.2 - 2016-01-10
The shebang indicates that the script works with /bin/sh, but you are using non-standard features that may not work with /bin/sh, even if /bin/sh is actually bash. Bash behaves differently when invoked as sh, and disabling support for the highlighted feature is one part of that.
Specify #!/usr/bin/env bash to ensure that bash (or your shell of choice) will be used, or rewrite the script to be more portable.
The Ubuntu wiki has a list of portability issues and suggestions on how to rewrite them.