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