diff --git a/SC2086.md b/SC2086.md index f58543f..cc20034 100644 --- a/SC2086.md +++ b/SC2086.md @@ -85,10 +85,10 @@ 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. this is especially relevant when BASH many not be available for the array work around. -For example... +For example, use in eval or in command options where script has total control of the variables... ```sh -FLAGS="-av --delete --delete-excluded +FLAGS="-av -e 'ssh -x' --delete --delete-excluded" ... # shellcheck disable=SC2086 -rsync $FLAGS ~/dir remote_host:dir +eval rsync $FLAGS ~/dir remote_host:dir ```