From c42ed585fcf480c715d4c98dd3a249a0c8acfa19 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 9 May 2015 12:07:22 -0700 Subject: [PATCH] Updated SC2068 (markdown) --- SC2068.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2068.md b/SC2068.md index 839c030..156a712 100644 --- a/SC2068.md +++ b/SC2068.md @@ -1,4 +1,4 @@ -## Add double quotes around ${@}, otherwise it's just like $* and breaks on spaces. +## Double quote array expansions to avoid re-splitting elements. ### Problematic code: @@ -10,7 +10,7 @@ ### Rationale: -Double quotes around `$@` prevents globbing and word splitting while still expanding to multiple separate arguments. +Double quotes around `$@` (and similarly, `${array[@]}`) prevents globbing and word splitting of individual elements, while still expanding to multiple separate arguments. Let's say you have three arguments: `baz`, `foo bar` and `*`