From 348e375a3dfb85f338ff51dfe246230d68235fb3 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Tue, 29 Jul 2025 10:44:40 +0900 Subject: [PATCH] Updated SC2235 (markdown) --- SC2235.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SC2235.md b/SC2235.md index 42bd0a4..c26d74c 100644 --- a/SC2235.md +++ b/SC2235.md @@ -22,7 +22,7 @@ For example, `(cmd)`, `(cmd;)` and `( cmd )` are all valid, but `{cmd}`, `{cmd;} Here's a small benchmark showing that the subshell version is more than 100x slower: -``` +```console $ i=0; time for i in {1..10000}; do ([ "$x" ] || [ "$y" ]) && [ "$z" ]; done real 0m7.122s user 0m4.204s @@ -34,8 +34,6 @@ user 0m0.055s sys 0m0.000s ``` - - ### Exceptions: None.