mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Example of ignoring the error
10
SC2086.md
10
SC2086.md
@@ -83,4 +83,12 @@ This is better than an unquoted value because the alternative value can be prope
|
||||
|
||||
---
|
||||
|
||||
As always, this warning can be [[ignore]]d on a case-by-case basis.
|
||||
As always, this warning can be [[ignore]]d on a case-by-case basis.
|
||||
this is especially relevant when BASH many not be available for the array work around.
|
||||
For example...
|
||||
```sh
|
||||
FLAGS="-av --delete --delete-excluded
|
||||
...
|
||||
# shellcheck disable=SC2086
|
||||
rsync $FLAGS ~/dir remote_host:dir
|
||||
```
|
||||
|
Reference in New Issue
Block a user