diff --git a/README.md b/README.md index 75691e1..6718ce2 100644 --- a/README.md +++ b/README.md @@ -1562,12 +1562,15 @@ Use `#!/usr/bin/env bash` instead of `#!/bin/bash`. - The former searches the user's `PATH` to find the `bash` binary. - The latter assumes it is always installed to `/bin/` which can cause issues. +**NOTE**: There are times when one may have a good reason for using `#!/bin/bash` or another direct path to the binary. + + ```shell # Right: #!/usr/bin/env bash -# Wrong: +# Less right: #!/bin/bash ``` diff --git a/manuscript/chapter15.txt b/manuscript/chapter15.txt index e03af79..f4b2fa4 100644 --- a/manuscript/chapter15.txt +++ b/manuscript/chapter15.txt @@ -7,12 +7,15 @@ Use `#!/usr/bin/env bash` instead of `#!/bin/bash`. - The former searches the user's `PATH` to find the `bash` binary. - The latter assumes it is always installed to `/bin/` which can cause issues. +**NOTE**: There are times when one may have a good reason for using `#!/bin/bash` or another direct path to the binary. + + ```shell # Right: #!/usr/bin/env bash -# Wrong: +# Less right: #!/bin/bash ```