From 9135679dcdc17275e0ba073f37e1c40bae11fcdf Mon Sep 17 00:00:00 2001 From: Ashay Humane Date: Sun, 9 Jul 2017 21:43:39 -0700 Subject: [PATCH] Updated SC1048 (markdown) --- SC1048.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SC1048.md b/SC1048.md index 5aabddf..80dd26a 100644 --- a/SC1048.md +++ b/SC1048.md @@ -8,9 +8,7 @@ then # TODO: handle this fi ``` - ### Correct code: - ```sh if [ -e foo ] then @@ -19,14 +17,13 @@ then fi # Or use the no-op colon operator ":" -```sh if [ -e foo ] then # TODO: handle this : fi ``` -``` + ### Rationale: Shells do not allow empty `then` clauses. They need at least one command (and comments are not commands).