From ba2c20a08a08a9a9d71c5fe8396bdec9479deecb Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 3 Jul 2019 20:02:14 -0700 Subject: [PATCH] Improve message for SC1067 --- src/ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Parser.hs b/src/ShellCheck/Parser.hs index 445d43b..b2935fd 100644 --- a/src/ShellCheck/Parser.hs +++ b/src/ShellCheck/Parser.hs @@ -2765,7 +2765,7 @@ readAssignmentWordExt lenient = try $ do variable <- readVariableName when lenient $ optional (readNormalDollar >> parseNoteAt pos ErrorC - 1067 "For indirection, use (associative) arrays or 'read \"var$n\" <<< \"value\"'") + 1067 "For indirection, use arrays, declare \"var$n=value\", or (for sh) read/eval.") indices <- many readArrayIndex hasLeftSpace <- fmap (not . null) spacing pos <- getPosition