From d3403c0b13f034e92ac27a4dffe370ecef622980 Mon Sep 17 00:00:00 2001 From: koalaman Date: Thu, 26 Oct 2017 09:51:34 -0700 Subject: [PATCH] Updated SC1010 (markdown) --- SC1010.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SC1010.md b/SC1010.md index 7728c8a..4d74cd5 100644 --- a/SC1010.md +++ b/SC1010.md @@ -5,6 +5,11 @@ ``` for f in *; do echo "$f" done ``` +or + +``` +echo $f is done +``` ### Correct code: @@ -12,6 +17,13 @@ for f in *; do echo "$f" done for f in *; do echo "$f"; done ``` +or + +``` +echo "$f is done" +``` + + ### Rationale: `done` only works as a keyword when it's the first token of the command. If added after a command, it will just be the literal word "done".