From b029ddd70a5c41829ca245725a88882a878dbbc7 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 25 Jul 2021 13:04:46 -0700 Subject: [PATCH] Updated SC2102 (markdown) --- SC2102.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SC2102.md b/SC2102.md index f655024..bf8e8d3 100644 --- a/SC2102.md +++ b/SC2102.md @@ -37,6 +37,8 @@ cat *.dev.conf *.prod.conf *.test.conf There is currently a bug in which a range expression whose contents is a variable gets parsed verbatim, e.g. `[$foo]`. In this case, either ignore the warning or make the square brackets part of the variable contents instead. +v0.7.2 and below would unintentionally show this warning for subscripts in arrays in `[[ -v array[xx] ]]` and other dereferencing operators. In these versions, you can either [[ignore]] the message or quote the word (as in `[[ -v 'array[xx]' ]]`) + ### Related resources: * Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file