From 9fecdfb38d9937025dcacd28d0b4112f06b23e51 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 16 Aug 2014 17:08:11 -0700 Subject: [PATCH] Updated Sc2004 (markdown) --- Sc2004.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sc2004.md b/Sc2004.md index 22f8411..1f8de54 100644 --- a/Sc2004.md +++ b/Sc2004.md @@ -1,4 +1,4 @@ -# Don't use $ on variables in (( )). +# $/${} is unnecessary on arithmetic variables. ### Problematic code: @@ -12,4 +12,4 @@ The `$` on regular variables in arithmetic contexts has no purpose, and is just noise. -The `$` does matter for special variables like `$1` vs `1`, `$#` vs `#`, and ShellCheck does not produce this style suggestion for these cases. \ No newline at end of file +The `$` does matter for special variables like `$1` vs `1`, `$#` vs `#`. ShellCheck does not produce this style suggestion for these cases. \ No newline at end of file