mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2234 (markdown)
@@ -16,7 +16,7 @@
|
||||
|
||||
You are wrapping a single test command in `(..)`, creating an unnecessary subshell. This serves no purpose, but is significantly slower:
|
||||
|
||||
```
|
||||
```console
|
||||
$ i=0; time while ( [ "$i" -lt 10000 ] ); do i=$((i+1)); done
|
||||
real 0m6.998s
|
||||
user 0m3.453s
|
||||
|
Reference in New Issue
Block a user