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".