From 23458cd9a1ddf610705c7a1f72cda1701a7857dc Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 15 Dec 2018 09:10:18 -0200 Subject: [PATCH] fix: branch conditional --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dfa9c9..0d35d41 100644 --- a/README.md +++ b/README.md @@ -632,7 +632,8 @@ unset HISTFILE && exit ###### Perform a branching conditional ```bash -true && { echo success;} || { echo failed; } +true && echo success +false || echo failed ``` ###### Pipe stdout and stderr to separate commands