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.