Originally posted by Troy Morton
I don't know if anyone else has run into this yet, but we are in the process of testing Cloverleaf 5.7 (upgrading from 5.4) and we ran into this interesting error when testing some of our TPS procs.
errorInfo: '
extra switch pattern with no body
while executing
"switch -exact -- $mode {
start {
The problem turned out to be comments embedded between the switch bodies like this:
switch -exact -- $mode {
start {
...code here...
} ;# End of Start Section
run {
...run code here...
} ;# End of Run Section
shutdown {
...shutdown code here...
} ;# End of Shutdown Section
default {
}We removed the comments ";# End of <section> Section" that fell after the end of one section but before the next section and that fixed the problem.