shellharden/moduletests/expected/esac_1.bash
Andreas Nordal addf86fd96 Fix hang on outer context end trigger within case arm
The case arm state was erroneously set up to return when an outer context would,
but the intermediate state, the case state, of course continues until "esac".

The bug was in the control structure parsing code that was new in version 4.0.0.
The hang was detected by afl. An exhaustive search did not find more.
2018-09-13 21:33:33 +02:00

7 lines
158 B
Bash

"$(case "$PATH" in
*something*)
# Backticks must be escaped in backtick context, but these aren't.
echo "$(echo 'I can see it in your eyes')"
;;
esac)"