From 6b571f4d7d120bd4fe53f1fbb5a0d3842a9fbd63 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 28 Apr 2018 12:36:03 -0700 Subject: [PATCH] Updated SC2223 (markdown) --- SC2223.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SC2223.md b/SC2223.md index e6ceb0f..d30fa25 100644 --- a/SC2223.md +++ b/SC2223.md @@ -19,6 +19,12 @@ If `COLUMNS='/*/*/*/*/*/*'`, the unquoted, problematic code may spend 30+ minute The correct code uses double quotes to avoid glob expansion, and therefore does not have this problem. +When quoting, make sure to update any inner quotes: + + : ${var:='foo'} # Assigns foo without quotes + : "${var:='foo'}" # Assigns 'foo' with quotes + + ### Exceptions: None, though this issue is largely theoretical. \ No newline at end of file