diff options
Diffstat (limited to 't/chainlint/if-then-else.expect')
-rw-r--r-- | t/chainlint/if-then-else.expect | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/chainlint/if-then-else.expect b/t/chainlint/if-then-else.expect new file mode 100644 index 0000000000..924caa2e4e --- /dev/null +++ b/t/chainlint/if-then-else.expect @@ -0,0 +1,22 @@ +2 ( +3 if test -n "" +4 then +5 echo very ?!LINT: missing '&&'?! +6 echo empty +7 elif test -z "" +8 then +9 echo foo +10 else +11 echo foo && +12 cat <<-\EOF +13 bar +14 EOF +15 fi ?!LINT: missing '&&'?! +16 echo poodle +17 ) && +18 ( +19 if test -n ""; then +20 echo very && +21 echo empty +22 fi +23 ) |