fent
2019-10-16 12:40:04 -04:00
parent 1a6a0df891
commit 42e6cdbc6d

@@ -35,7 +35,7 @@ To check that a command returns success, use `if mycommand; then ...`.
To check that a command returns failure, use `if ! mycommand; then ...`. Notice that `!` will overwrite `$?` value. To check that a command returns failure, use `if ! mycommand; then ...`. Notice that `!` will overwrite `$?` value.
To additionally capture output with command substitution: `if output=$(mycommand); then ...` To additionally capture output with command substitution: `if ! output=$(mycommand); then ...`
This also applies to `while`/`until` loops. This also applies to `while`/`until` loops.