t / chainlint / complex-if-in-cuddled-loop.teston commit Merge branch 'jc/no-grepping-for-strerror-in-tests' (4e09a7b)
   1# LINT: 'for' loop cuddled with "(" and ")" and nested 'if' with complex
   2# LINT: multi-line condition; indented with spaces, not tabs
   3(for i in a b c; do
   4   if test "$(echo $(waffle bat))" = "eleventeen" &&
   5     test "$x" = "$y"; then
   6     :
   7   else
   8     echo >file
   9   fi
  10 done) &&
  11test ! -f file