From f313ece4f7de5592ded105041f68ea8d3f6372be Mon Sep 17 00:00:00 2001 From: Tamaranch <41806113+Tamaranch@users.noreply.github.com> Date: Mon, 27 Aug 2018 11:11:21 +0200 Subject: [PATCH] Updated SC2086 (markdown) --- SC2086.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2086.md b/SC2086.md index 1e0ab40..bebdfd1 100644 --- a/SC2086.md +++ b/SC2086.md @@ -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: -``` +```sh 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='*/*/*/*/*/*' ``` ---