When a case is nested inside a case, neither having a default, both esac endings should cause a violation
Actual behaviorThere is only one violation, on the first esac found.
Steps to reproduce behaviorCode 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
3.1.0-dev version
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4