opnsense-src/tools/regression/bin/sh/execution
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
..
bg1.0 sh: Set $? to 0 for background commands. 2011-04-25 20:54:12 +00:00
bg2.0 sh: Set $? to 0 for background commands. 2011-04-25 20:54:12 +00:00
bg3.0 sh: Set $? to 0 for background commands. 2011-04-25 20:54:12 +00:00
fork1.0 sh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh". 2011-02-19 13:22:18 +00:00
fork2.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
fork3.0 sh: Allow EV_EXIT through function calls, make {...} <redir more consistent. 2011-04-23 22:28:56 +00:00
func1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
func2.0 sh: Get rid of unnecessary non-standard empty lists. 2010-08-16 17:18:08 +00:00
func3.0 sh: Fix some tests that used sh instead of ${SH} 2010-12-12 21:18:16 +00:00
hash1.0 sh: Forget all cached command locations on any PATH change. 2011-02-05 14:01:46 +00:00
killed1.0 sh: Fix signal messages being sent to the wrong file sometimes. 2011-01-18 21:18:31 +00:00
killed2.0 sh: Send messages about signals to stderr. 2011-01-30 22:57:52 +00:00
path1.0 sh: Remove special %builtin PATH entry. 2011-01-09 21:07:30 +00:00
redir1.0 sh: Reduce unnecessary testsuite failures with other shells. 2010-08-16 22:23:19 +00:00
redir2.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
redir3.0 sh: Add a test trying to close a descriptor that is not open. 2010-10-24 19:56:34 +00:00
redir4.0 sh: Check whether dup2 was successful for >&FD and <&FD. 2010-10-24 20:09:49 +00:00
redir5.0 sh: Fix two things about {(...)} <redir: 2011-02-05 15:02:19 +00:00
redir6.0 sh: Allow EV_EXIT through function calls, make {...} <redir more consistent. 2011-04-23 22:28:56 +00:00
redir7.0 sh: Allow EV_EXIT through function calls, make {...} <redir more consistent. 2011-04-23 22:28:56 +00:00
set-n1.0 sh: Add tests for -n flag. These already pass. 2011-06-03 21:17:42 +00:00
set-n2.0 sh: Add tests for -n flag. These already pass. 2011-06-03 21:17:42 +00:00
set-n3.0 sh: Add tests for -n flag. These already pass. 2011-06-03 21:17:42 +00:00
set-n4.0 sh: Honour -n while processing -c string. 2011-06-04 11:28:42 +00:00
set-x1.0 sh: Add simple tests for set -x and PS4. 2011-06-08 21:58:19 +00:00
set-x2.0 sh: Add simple tests for set -x and PS4. 2011-06-08 21:58:19 +00:00
set-x3.0 sh: Do parameter expansion before printing PS4 (set -x). 2011-06-09 23:12:23 +00:00
shellproc1.0 sh: Add test for shell script without '#!'. 2011-02-02 22:03:18 +00:00
unknown1.0 sh: Send the "xyz: not found" message to redirected fd 2. 2009-10-06 22:00:14 +00:00
var-assign1.0 sh: Apply variable assignments left-to-right in bltinlookup(). 2010-09-11 14:15:50 +00:00