mirror of
https://github.com/dylanaraps/pure-bash-bible.git
synced 2025-08-22 15:22:48 +02:00
docs: update
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user