From c7ae66de5d7bb5a3c1bd2a90f0397f194299c0dc Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Thu, 21 Apr 2022 20:42:57 -0700 Subject: [PATCH] Updated SC2102 (markdown) --- SC2102.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SC2102.md b/SC2102.md index bf8e8d3..bc40abe 100644 --- a/SC2102.md +++ b/SC2102.md @@ -39,6 +39,10 @@ There is currently a bug in which a range expression whose contents is a variabl 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]' ]]`) +Note that IPv6 URLs trigger this warning, but the correct solution in this case is to quote them: + + curl 'http://[2607:f8b0:4002:c0c::65]/' + ### Related resources: * Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file