opnsense-src/tools/regression/bin/sh
Jilles Tjoelker 292e667663 sh: Do parameter expansion before printing PS4 (set -x).
The function name expandstr() and the general idea of doing this kind of
expansion by treating the text as a here document without end marker is from
dash.

All variants of parameter expansion and arithmetic expansion also work (the
latter is not required by POSIX but it does not take extra code and many
other shells also allow it).

Command substitution is prevented because I think it causes too much code to
be re-entered (for example creating an unbounded recursion of trace lines).

Unfortunately, our LINENO is somewhat crude, otherwise PS4='$LINENO+ ' would
be quite useful.
2011-06-09 23:12:23 +00:00
..
builtins sh: Reduce more needless differences between error messages. 2011-06-04 15:05:52 +00:00
errors sh: Detect an error for ${#var<GARBAGE>}. 2011-05-04 21:49:34 +00:00
execution sh: Do parameter expansion before printing PS4 (set -x). 2011-06-09 23:12:23 +00:00
expansion sh: Fix $? in heredocs on simple commands. 2011-06-05 14:13:15 +00:00
parameters sh: Add test for positional parameters with more than one digit. 2011-05-21 14:52:26 +00:00
parser sh: Add tests for some somewhat obscure aspects of function definitions. 2011-05-30 21:49:59 +00:00
set-e sh: Get rid of unnecessary non-standard empty lists. 2010-08-16 17:18:08 +00:00
Makefile Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
regress.sh sh: Do not use "local" in the test runner as POSIX and ksh93 do not have it. 2011-02-19 13:23:13 +00:00
regress.t sh: Allow running 'prove' from tools/regression/bin/sh again 2010-10-15 20:01:35 +00:00