@trimstray
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
README.md
|
|
@@ -632,8 +632,7 @@ unset HISTFILE && exit |
|
|
|
###### Perform a branching conditional |
|
|
|
|
|
|
|
```bash |
|
|
|
true && echo success |
|
|
|
false || echo failed |
|
|
|
your_command && { echo success;} || { echo failed; } |
|
|
|
``` |
|
|
|
|
|
|
|
###### Pipe stdout and stderr to separate commands |
|
|
|