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