sh file to test loops

This commit is contained in:
matteo 2026-01-31 11:34:24 +01:00
parent 4289700e2e
commit 93f280f59d

15
tests/loops.sh Executable file
View file

@ -0,0 +1,15 @@
echo "starting tests"
while false;
do
echo "should NOT be printed"
done
a='yes'
while [ "$a" -eq "yes" ];
do
a="no"
echo "should be printed only once"
done;
echo "tests done"