A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cnescatlab/i-CodeCNES/issues/135 below:

The COM.FLOW.CaseSwitch rule doesn't manage a case inside a case correctly · Issue #135 · cnescatlab/i-CodeCNES · GitHub

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


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