| 1 | test_expect_success 'cuddled-loop' ' |
| 2 | # LINT: "while" loop cuddled with "(" and ")", with embedded (allowed) |
| 3 | # LINT: "|| exit {n}" to exit loop early, and using redirection "<" to feed |
| 4 | # LINT: loop; indented with spaces, not tabs |
| 5 | ( while read x |
| 6 | do foobar bop || exit 1 |
| 7 | done <file ) && |
| 8 | outside subshell |
| 9 | ' |