mirror of
https://github.com/dylanaraps/pure-bash-bible.git
synced 2025-01-17 04:08:17 +01:00
docs: update
This commit is contained in:
parent
4b3b44a3f3
commit
f1301357da
@ -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
|
||||
```
|
||||
|
@ -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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user