2018-07-11 08:46:39 +02:00
|
|
|
(
|
|
|
|
for i in a b c
|
|
|
|
do
|
|
|
|
foo || exit 1
|
|
|
|
bar &&
|
|
|
|
baz
|
|
|
|
done
|
2021-12-13 07:30:54 +01:00
|
|
|
) &&
|
2018-07-11 08:46:39 +02:00
|
|
|
(
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
foo || exit 1
|
|
|
|
bar &&
|
|
|
|
baz
|
|
|
|
done
|
2021-12-13 07:30:54 +01:00
|
|
|
) &&
|
2018-07-11 08:46:39 +02:00
|
|
|
(
|
|
|
|
i=0 &&
|
|
|
|
while test $i -lt 10
|
|
|
|
do
|
|
|
|
echo $i || exit
|
|
|
|
i=$(($i + 1))
|
|
|
|
done
|
2021-12-13 07:30:54 +01:00
|
|
|
)
|