From b95112b879eef0d5495c89ff42c5eb5f8965c475 Mon Sep 17 00:00:00 2001 From: marinhoc <15786638+marinhoc@users.noreply.github.com> Date: Fri, 15 Jun 2018 21:48:27 +0200 Subject: [PATCH] added : notes --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ffba0b6..b0ac147 100644 --- a/README.md +++ b/README.md @@ -1071,10 +1071,12 @@ f()for i in "$@"; do echo "$i"; done ```shell # One line +# Note: The 3rd statement may run when the 1st is true [[ "$var" == hello ]] && echo hi || echo bye [[ "$var" == hello ]] && { echo hi; echo there; } || echo bye # Multi line (no else, single statement) +# Note: The exit status may not be the same as with an if statement [[ "$var" == hello ]] && \ echo hi