diff --git a/SC1057.md b/SC1057.md new file mode 100644 index 0000000..4294e58 --- /dev/null +++ b/SC1057.md @@ -0,0 +1,29 @@ +## Did you forget the `do` for this loop? + +### Problematic code: + +```sh +while read -r line + echo $line +done +``` + +### Correct code: + +```sh +while read -r line +do + echo $line +done +``` +### Rationale: + +ShellCheck found a loop that appears to be missing its `do` statement. Make sure the loop syntax is correct. + +### Exceptions: + +None. + +### Related resources: + +* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file