From 902ce9055afcea6e624aa2ad037110bd447f5329 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Mon, 30 Aug 2021 11:07:04 -0700 Subject: [PATCH] Updated SC2234 (markdown) --- SC2234.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2234.md b/SC2234.md index db9d1eb..bd0f291 100644 --- a/SC2234.md +++ b/SC2234.md @@ -1,4 +1,4 @@ -## Remove superfluous `(..)` around test command. +## Remove superfluous `(..)` around test command to avoid subshell overhead. ### Problematic code: @@ -14,7 +14,7 @@ ### Rationale: -You are wrapping a single test command in `(..)`, creating an unnecessary subshell. This serves no purpose, but is dramatically slower: +You are wrapping a single test command in `(..)`, creating an unnecessary subshell. This serves no purpose, but is significantly slower: ``` $ i=0; time while ( [ "$i" -lt 10000 ] ); do i=$((i+1)); done