From 02f5a5113e5a1b532881e26f29938094161c0a71 Mon Sep 17 00:00:00 2001 From: lacygoill Date: Mon, 26 Sep 2022 19:33:14 +0200 Subject: [PATCH] Updated SC1102 (markdown) --- SC1102.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC1102.md b/SC1102.md index 2df6a54..6aab59b 100644 --- a/SC1102.md +++ b/SC1102.md @@ -1,4 +1,4 @@ -## Shells disambiguate `$((` differently or not at all. For `$(command substition)`, add space after `$(` . For `$((arithmetics))`, fix parsing errors. +## Shells disambiguate `$((` differently or not at all. For `$(command substitution)`, add space after `$(` . For `$((arithmetics))`, fix parsing errors. ### Problematic code: @@ -25,4 +25,4 @@ Ash, dash and Bash 1 parses it as `$(( (` and subsequently fail to find the matc **Alternatively**, you may indeed have correctly spaced your parentheses, but ShellCheck failed to parse `$((` as an arithmetic expression while accidentally succeeding in parsing it as `$(` + `(`. -In these cases, double check the syntax to ensure ShellCheck can parse the `$((`, or ignore this error and hope that it won't affect analysis too severely. \ No newline at end of file +In these cases, double check the syntax to ensure ShellCheck can parse the `$((`, or ignore this error and hope that it won't affect analysis too severely.