From f59616d9581a359fa0729bcb2ba6f312bbc49192 Mon Sep 17 00:00:00 2001 From: koalaman Date: Wed, 26 Feb 2014 00:47:57 -0800 Subject: [PATCH] Updated SC2015 (markdown) --- SC2015.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2015.md b/SC2015.md index 6b9acdb..00d8474 100644 --- a/SC2015.md +++ b/SC2015.md @@ -21,7 +21,7 @@ However, combining them into `A && B || C` is not the same as `if A then B else In this case, if `A` is true but `B` is false, `C` will run. -For the code sample above, if the script was run with stdout closed for any reason (such as explicitly running `script --dryrun >&-`), echo would fail and return false and the file would be deleted, even though `$dryrun` was set! +For the code sample above, if the script was run with stdout closed for any reason (such as explicitly running `script --dryrun >&-`), echo would fail and the file would be deleted, even though `$dryrun` was set! If an `if` clause is used instead, this problem is avoided.