Updated SC2164 (markdown)

shanghai yakisoba chan!
2021-02-21 16:19:19 +09:00
parent abe8f7845b
commit b83def7c11

@@ -37,6 +37,7 @@ To avoid this, make sure you handle the cases when `cd` fails. Ways to do this i
* `cd foo || exit` as suggested to abort immediately, reusing exit code from failed `cd` command * `cd foo || exit` as suggested to abort immediately, reusing exit code from failed `cd` command
* `cd foo || { echo "Failure"; exit 1; }` abort with custom message * `cd foo || { echo "Failure"; exit 1; }` abort with custom message
* `cd foo || ! echo "Failure"` omitting "abort with custom message"
* `if cd foo; then echo "Ok"; else echo "Fail"; fi` for custom handling * `if cd foo; then echo "Ok"; else echo "Fail"; fi` for custom handling
* `<(cd foo && cmd)` as an alternative to `<(cd foo || exit; cmd)` in `<(..)`, `$(..)` or `( )` * `<(cd foo && cmd)` as an alternative to `<(cd foo || exit; cmd)` in `<(..)`, `$(..)` or `( )`