From 87ed01b739d0fcdaa822c727b09ad0fed32d0082 Mon Sep 17 00:00:00 2001 From: Zeebrommer Date: Thu, 2 Jul 2020 16:45:04 +0200 Subject: [PATCH] Bash: add `else` example (#1484) I always forget if `else` is to be followed by a `;` or not. Add it to the conditionals chapter where I would expect it. --- bash.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash.md b/bash.md index 1da454aed..b06e44e3d 100644 --- a/bash.md +++ b/bash.md @@ -404,6 +404,8 @@ if [[ -z "$string" ]]; then echo "String is empty" elif [[ -n "$string" ]]; then echo "String is not empty" +else + echo "This never happens" fi ```