mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Remove incorrect example that's better handled by SC2089
10
SC2086.md
10
SC2086.md
@@ -93,13 +93,3 @@ cmd <<< $var # Requires quoting on Bash 3 (but not 4+)
|
|||||||
---
|
---
|
||||||
|
|
||||||
As always, this warning can be [[ignored|ignore]] on a case-by-case basis.
|
As always, this warning can be [[ignored|ignore]] on a case-by-case basis.
|
||||||
|
|
||||||
This is especially relevant when BASH may not be available for the array work around.
|
|
||||||
For example, use in eval or in command options where script has total control of the variables...
|
|
||||||
|
|
||||||
```sh
|
|
||||||
FLAGS="-av -e 'ssh -x' --delete --delete-excluded"
|
|
||||||
...
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
eval rsync $FLAGS ~/dir remote_host:dir
|
|
||||||
```
|
|
Reference in New Issue
Block a user