opnsense-src/tools/regression/bin
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
..
date regression/date: unset all LC_xxx vars and set LANG/LC_ALL 2011-01-09 22:05:09 +00:00
mv Hide expected error output so the 'prove -r' results are easy to read. 2010-01-03 09:31:33 +00:00
pax Add a Makefile for tools/regression/bin and support 'all' in 2010-08-29 12:14:53 +00:00
sh sh: Do parameter expansion before printing PS4 (set -x). 2011-06-09 23:12:23 +00:00
test Accept == as an alias of = which is a popular GNU extension. 2011-02-27 12:28:06 +00:00
Makefile test: Move tests to tools/regression/bin/test. 2010-11-08 23:15:10 +00:00