mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2089 (markdown)
@@ -14,6 +14,13 @@ args=(-lh "My File.txt")
|
|||||||
ls "${args[@]}"
|
ls "${args[@]}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or in POSIX overwriting `"$@"`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
set -- -lh "My File.txt"
|
||||||
|
ls "$@"
|
||||||
|
```
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
Bash does not interpret data as code. Consider almost any other languages, such as Python:
|
Bash does not interpret data as code. Consider almost any other languages, such as Python:
|
||||||
|
Reference in New Issue
Block a user