From 6381290f5473a10c3e4ef74c5710d0124ce047cd Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 1 Oct 2016 14:25:20 -0700 Subject: [PATCH] Updated SC2004 (markdown) --- SC2004.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2004.md b/SC2004.md index e363b84..1ebfe7c 100644 --- a/SC2004.md +++ b/SC2004.md @@ -24,4 +24,4 @@ $ echo $((a * 5)) # evaluates as (1+1)*5 10 ``` -The `$` is unavoidable for special variables like `$1` vs `1`, `$#` vs `#`. ShellCheck does not warn about these cases. +The `$` is unavoidable for special variables like `$1` vs `1`, `$#` vs `#`. It's also required when adding modifiers to parameters expansions, like `${#var}` or `${var%-}`. ShellCheck does not warn about these cases.