mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2086 (markdown)
@@ -85,9 +85,9 @@ This is better than an unquoted value because the alternative value can be prope
|
|||||||
|
|
||||||
Here are two common cases where this warning seems unnecessary but may still be beneficial:
|
Here are two common cases where this warning seems unnecessary but may still be beneficial:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
cmd <<< $var # Requires quoting on Bash 3 (but not 4+)
|
cmd <<< $var # Requires quoting on Bash 3 (but not 4+)
|
||||||
: ${var=default} # Should be quoted to avoid DoS when `var='*/*/*/*/*/*`
|
: ${var=default} # Should be quoted to avoid DoS when var='*/*/*/*/*/*'
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user