Updated SC2015 (markdown)

koalaman
2014-02-26 00:47:57 -08:00
parent 7437fa6b24
commit f59616d958

@@ -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.