浏览代码
fixed branching conditional example
pull/7/head
@trimstray
6 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
1 次插入 和
2 次删除
-
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 |
|
|
|