From 04ba5e281140a0cd36a2f30cca7fd74ab15497c5 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sun, 2 Apr 2017 14:27:32 -0700 Subject: [PATCH] Updated SC2206 (markdown) --- SC2206.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2206.md b/SC2206.md index 37e3970..d297693 100644 --- a/SC2206.md +++ b/SC2206.md @@ -41,7 +41,7 @@ You are expanding a variable unquoted in an array. This will invoke the shell's Instead, prefer explicitly splitting (or not splitting): * If the variable should become a single array element, quote it. -* If you want to split into lines or words, use `mapfile`, `read -ra` and/or `while` loops appropriate. +* If you want to split into lines or words, use `mapfile`, `read -ra` and/or `while` loops as appropriate. This prevents the shell from doing unwanted splitting and glob expansion, and therefore avoiding problems with data containing spaces or special characters.