From 7358c6c49b16bf829ffb644ec87f63f97bdaa1c0 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 1 Mar 2014 15:16:11 -0800 Subject: [PATCH] Created SC2040 (markdown) --- SC2040.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 SC2040.md diff --git a/SC2040.md b/SC2040.md new file mode 100644 index 0000000..6b47f46 --- /dev/null +++ b/SC2040.md @@ -0,0 +1,7 @@ +## #!/bin/sh was specified, so ____ is not supported, even when sh is actually bash. + +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](https://wiki.ubuntu.com/DashAsBinSh) and suggestions on how to rewrite them. \ No newline at end of file