2018-07-11 09:46:35 +03: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 09:30:47 +03:00
|
|
|
# LINT: semicolon unnecessary but legitimate
|
2018-07-11 09:46:35 +03:00
|
|
|
foo;
|
|
|
|
) &&
|
|
|
|
(cd foo &&
|
|
|
|
for i in a b c; do
|
2021-12-13 09:30:47 +03:00
|
|
|
# LINT: semicolon unnecessary but legitimate
|
2018-07-11 09:46:35 +03:00
|
|
|
echo;
|
|
|
|
done)
|