freebsd-dev/tools/regression/bin/sh
Jilles Tjoelker ae7c0700dc sh: Fix break/continue/return sometimes not skipping the rest of dot script.
In our implementation and most others, a break or continue in a dot script
can break or continue a loop outside the dot script. This should cause all
further commands in the dot script to be skipped. However, cmdloop() did not
know about this and continued to parse and execute commands from the dot
script.

As described in the man page, a return in a dot script in a function returns
from the function, not only from the dot script. There was a similar issue
as with break and continue. In various other shells, the return appears to
return from the dot script, but POSIX seems not very clear about this.
2010-08-15 21:06:53 +00:00
..
builtins sh: Fix break/continue/return sometimes not skipping the rest of dot script. 2010-08-15 21:06:53 +00:00
errors sh: Fix bug in assignment error test. 2010-05-09 16:04:32 +00:00
execution Fix some cases where file descriptors from redirections leak to programs. 2009-11-29 22:33:59 +00:00
expansion sh: Test that all bytes from 1 to 127 can be used in IFS. 2010-08-15 17:14:05 +00:00
parameters sh: On startup of the shell, use PWD from the environment if it is valid. 2010-04-17 14:35:46 +00:00
parser sh: Fix crash due to uninitialized here-document. 2010-07-25 22:25:52 +00:00
set-e Add tests for r193169. 2009-05-31 17:23:27 +00:00
Makefile
regress.sh Add test cases for the command built-in, including its -v and -V options which 2005-10-28 14:02:42 +00:00
regress.t