Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cuddled-loop.test « chainlint « t - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c2a62f7518937e86ff2723f62e17be9d28e8eda (plain)
1
2
3
4
5
6
7
# LINT: "while" loop cuddled with "(" and ")", with embedded (allowed)
# LINT: "|| exit {n}" to exit loop early, and using redirection "<" to feed
# LINT: loop; indented with spaces, not tabs
( while read x
  do foobar bop || exit 1
  done <file ) &&
outside subshell