You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a case is nested inside a case, neither having a default, both esac endings should cause a violation
Actual behavior
There is only one violation, on the first esac found.
Steps to reproduce behavior
Code to reproduce:
while true; do
read SELECT
case $SELECT in
1) print "a) option a"
print "b) option b"
while read SELECT2;do
case $SELECT2 in
"a") print "A selected";;
"b") print "B selected";;
esac
break 2
done;;
2) print "2 selected";;
esac
break
done
Detection version
3.1.0-dev version
The text was updated successfully, but these errors were encountered:
Expected behaviour
When a case is nested inside a case, neither having a default, both esac endings should cause a violation
Actual behavior
There is only one violation, on the first esac found.
Steps to reproduce behavior
Code to reproduce:
while true; do
read SELECT
case $SELECT in
1) print "a) option a"
print "b) option b"
while read SELECT2;do
case $SELECT2 in
"a") print "A selected";;
"b") print "B selected";;
esac
break 2
done;;
2) print "2 selected";;
esac
break
done
Detection version
3.1.0-dev version
The text was updated successfully, but these errors were encountered: