2018-07-11 06:46:35 +00:00
|
|
|
(
|
|
|
|
# LINT: missing internal "&&" and ending "&&"
|
|
|
|
cat foo ; echo bar
|
|
|
|
# LINT: final statement before ")" only missing internal "&&"
|
|
|
|
cat foo ; echo bar
|
|
|
|
) &&
|
|
|
|
(
|
|
|
|
# LINT: missing internal "&&"
|
|
|
|
cat foo ; echo bar &&
|
|
|
|
cat foo ; echo bar
|
|
|
|
) &&
|
|
|
|
(
|
|
|
|
# LINT: not fooled by semicolon in string
|
|
|
|
echo "foo; bar" &&
|
|
|
|
cat foo; echo bar
|
|
|
|
) &&
|
|
|
|
(
|
2021-12-13 06:30:47 +00:00
|
|
|
# LINT: semicolon unnecessary but legitimate
|
2018-07-11 06:46:35 +00:00
|
|
|
foo;
|
|
|
|
) &&
|
|
|
|
(cd foo &&
|
|
|
|
for i in a b c; do
|
2021-12-13 06:30:47 +00:00
|
|
|
# LINT: semicolon unnecessary but legitimate
|
2018-07-11 06:46:35 +00:00
|
|
|
echo;
|
|
|
|
done)
|