2018-07-11 06:46:39 +00:00
|
|
|
(
|
2021-12-13 06:30:46 +00:00
|
|
|
# LINT: "...)" arms in "case" not misinterpreted as subshell-closing ")"
|
2018-07-11 06:46:39 +00:00
|
|
|
case "$x" in
|
|
|
|
x) foo ;;
|
|
|
|
*) bar ;;
|
|
|
|
esac &&
|
|
|
|
foobar
|
|
|
|
) &&
|
|
|
|
(
|
2021-12-13 06:30:46 +00:00
|
|
|
# LINT: missing "&&" on "esac"
|
2018-07-11 06:46:39 +00:00
|
|
|
case "$x" in
|
|
|
|
x) foo ;;
|
|
|
|
*) bar ;;
|
|
|
|
esac
|
|
|
|
foobar
|
|
|
|
) &&
|
|
|
|
(
|
2021-12-13 06:30:46 +00:00
|
|
|
# LINT: "...)" arm in one-liner "case" not misinterpreted as closing ")"
|
2018-07-11 06:46:39 +00:00
|
|
|
case "$x" in 1) true;; esac &&
|
|
|
|
# LINT: same but missing "&&"
|
|
|
|
case "$y" in 2) false;; esac
|
|
|
|
foobar
|
|
|
|
)
|