freebsd-skq/bin/sh/tests
jilles bc5702addf sh: Make getopts memory-safe if with changing arguments.
POSIX does not permit to continuing a getopts loop with different
arguments. For parsing the positional parameters, we handle this case by
resetting the getopts state when the positional parameters are changed in
any way (and the getopts state is local to a function). However, in the
syntax getopts <optstring> <var> <arg...>, changes could lead to invalid
memory access.

In the syntax getopts <optstring> <var> <arg...>, store a copy of the
arguments and continue to use them until getopts is reset.
2014-10-26 17:50:33 +00:00
..
builtins sh: Make getopts memory-safe if with changing arguments. 2014-10-26 17:50:33 +00:00
errors sh: Don't hardcode relative paths in the tests stderr files. 2014-08-17 14:26:12 +00:00
execution Convert bin/sh/tests to ATF 2014-08-13 04:14:50 +00:00
expansion sh: Mask off shift distance (<< and >>) in arithmetic. 2014-08-15 22:36:41 +00:00
parameters Convert bin/sh/tests to ATF 2014-08-13 04:14:50 +00:00
parser sh: Allow backslash-newline continuation in more places: 2014-10-19 11:59:15 +00:00
set-e Convert bin/sh/tests to ATF 2014-08-13 04:14:50 +00:00
functional_test.sh sh: Don't hardcode relative paths in the tests stderr files. 2014-08-17 14:26:12 +00:00
Makefile Convert bin/sh/tests to ATF 2014-08-13 04:14:50 +00:00