freebsd-nq/bin/sh/tests/builtins/eval7.0
Jilles Tjoelker 75e1716807 sh: Fix break/continue/return in multiline eval.
Example:
  eval $'return\necho bad'
2014-10-12 13:12:06 +00:00

10 lines
132 B
Plaintext

# $FreeBSD$
# Assumes that break can break out of a loop outside eval.
while :; do
eval "break
echo bad1"
echo bad2
exit 3
done