opnsense-src/tools/regression/bin/sh/expansion
Jilles Tjoelker c5aef5377c sh: Reduce unnecessary forks with eval.
The eval special builtin now runs the code with EV_EXIT if it was run
with EV_EXIT itself.

In particular, this eliminates one fork when a command substitution contains
an eval command that ends with an external program or a subshell.

This is similar to what r220978 did for functions.
2011-06-16 21:50:28 +00:00
..
arith1.0 sh: arith: Return only 0 and 1 from && and ||. 2009-12-30 15:59:40 +00:00
arith2.0 sh: Remove comment that the comma operator is missing in arithmetic 2010-07-02 21:31:24 +00:00
arith3.0 sh: arith: Add a test for a bug in the dash arith code, 2010-02-17 22:25:22 +00:00
arith4.0 sh: Add test for some associativity in arithmetic. 2010-04-04 16:29:48 +00:00
arith5.0 sh: Add test for nested arithmetic substitution. 2010-04-04 16:48:33 +00:00
arith6.0 sh: Add a test that manipulates various long strings. 2010-11-19 22:25:32 +00:00
arith7.0 sh: Add a test for r216387 (long arithmetic expression in here document). 2010-12-12 16:56:16 +00:00
arith8.0 sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9). 2010-12-18 23:03:51 +00:00
arith9.0 sh: Add tests for new features in arithmetic. 2011-02-08 23:23:55 +00:00
arith10.0 sh: Add tests for new features in arithmetic. 2011-02-08 23:23:55 +00:00
arith11.0 sh: Detect dividing the smallest integer by -1. 2011-02-12 23:44:05 +00:00
assign1.0 sh: Add some testcases for ${v=w}, ${v-w}, ${v+w}. 2010-03-07 18:43:29 +00:00
cmdsubst1.0 sh: Fix some bugs with backquoted builtins: 2010-01-01 18:17:46 +00:00
cmdsubst2.0 sh: Add tests for " and $ inside `. 2010-03-12 23:23:46 +00:00
cmdsubst3.0 sh: Unset some more locale vars in two tests that may cause them to break. 2011-02-18 20:37:09 +00:00
cmdsubst4.0 sh: Add a testcase for cmdsubst errors that already works properly. 2010-12-27 23:56:03 +00:00
cmdsubst5.0 sh: Make expansion errors in optimized command substitution non-fatal. 2010-12-28 13:28:24 +00:00
cmdsubst6.0 sh: Add test for optimized command substitution. 2010-12-28 14:58:08 +00:00
cmdsubst7.0 sh: Don't do optimized command substitution if expansions have side effects. 2010-12-28 21:27:08 +00:00
cmdsubst8.0 sh: Add two tests for special cases in command substitution that already 2010-12-30 15:04:59 +00:00
cmdsubst9.0 sh: Add two tests for special cases in command substitution that already 2010-12-30 15:04:59 +00:00
cmdsubst10.0 sh: Avoid side effects from builtins in optimized command substitution. 2010-12-30 22:33:55 +00:00
cmdsubst11.0 sh: Reduce unnecessary forks with eval. 2011-06-16 21:50:28 +00:00
heredoc1.0 sh: Add already working testcases for $? in here-document. 2011-06-05 12:46:26 +00:00
heredoc2.0 sh: Fix $? in heredocs on simple commands. 2011-06-05 14:13:15 +00:00
ifs1.0 Add some tests for r194975 and r194977. 2009-06-25 17:36:08 +00:00
ifs2.0 sh: Test that all bytes from 1 to 127 can be used in IFS. 2010-08-15 17:14:05 +00:00
ifs3.0 sh: Test that all bytes from 128 to 255 can be used in IFS. 2010-08-22 13:09:12 +00:00
ifs4.0 sh: Fix unquoted $@/$* if IFS=''. 2011-05-27 15:56:13 +00:00
length1.0 sh: Add some tests for ${#parameter}. 2011-03-13 16:20:38 +00:00
length2.0 sh: Add some tests for ${#parameter}. 2011-03-13 16:20:38 +00:00
length3.0 sh: Add some tests for ${#parameter}. 2011-03-13 16:20:38 +00:00
length4.0 sh: Add test for obscure and ambiguous ${#?}. 2011-04-15 15:26:05 +00:00
length5.0 sh: Add test for bin/12137. 2011-04-15 15:33:24 +00:00
length6.0 sh: Do not word split "${#parameter}". 2011-04-20 22:24:54 +00:00
length7.0 sh: Add UTF-8 support to ${#var}. 2011-05-07 14:32:16 +00:00
length8.0 sh: Add UTF-8 support to ${#var}. 2011-05-07 14:32:16 +00:00
pathname1.0 sh: Add some simple testcases for pathname expansion. 2010-05-11 22:28:55 +00:00
pathname2.0 sh: Fix pathname expansion with quoted slashes like *\/. 2010-05-11 23:19:28 +00:00
pathname3.0 sh: Fix heap-based buffer overflow in pathname generation. 2010-08-10 22:45:59 +00:00
pathname4.0 sh: Remove remnants of '!!' to negate pattern. 2010-08-22 21:18:21 +00:00
plus-minus1.0 Restore two commented-out tests from plus-minus1.0 to a new file. 2010-12-27 15:57:41 +00:00
plus-minus2.0 sh: Fix various things about expansions: 2010-04-03 20:55:56 +00:00
plus-minus3.0 sh: Add testcases for double-quotes within quoted ${var+-...} (non-POSIX). 2010-04-18 22:13:45 +00:00
plus-minus4.0 sh: Add more testcases for ${var:-word}. 2010-08-08 17:03:23 +00:00
plus-minus5.0 sh: Only accept a '}' inside ${v+-=?...} if double-quote state matches. 2010-10-28 22:34:49 +00:00
plus-minus6.0 sh: Do IFS splitting on word in ${v+word} and ${v-word}. 2010-10-29 13:42:18 +00:00
plus-minus7.0 Restore two commented-out tests from plus-minus1.0 to a new file. 2010-12-27 15:57:41 +00:00
plus-minus8.0 sh: Fix some parameter expansion variants ${#...}. 2011-03-13 20:02:39 +00:00
question1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
set-u1.0 Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
set-u2.0 sh: Exempt $@ and $* from set -u 2009-10-24 21:20:04 +00:00
set-u3.0 sh: Apply set -u to variables in arithmetic. 2011-05-04 22:12:22 +00:00
tilde1.0 sh: Fix duplicate variable name in test. 2010-04-03 21:56:24 +00:00
tilde2.0 sh: Do tilde expansion in substitutions. 2010-04-03 22:04:44 +00:00
trim1.0 sh: Add some testcases for the working parts of ${v%...} and ${v#...}. 2010-04-03 20:14:10 +00:00
trim2.0 sh: Allow quoting pattern match characters in ${v%pat} and ${v#pat}. 2010-04-03 21:07:50 +00:00
trim3.0 sh: Add some more tests for ${v#...} and ${v%...}. 2010-04-23 17:26:49 +00:00
trim4.0 Do not assume in growstackstr() that a "precious" character will be 2010-10-13 23:29:09 +00:00
trim5.0 sh: Make double-quotes quote a '}' inside ${v#...} and ${v%...}. 2010-10-28 21:51:14 +00:00
trim6.0 sh: Fix some issues with CTL* bytes and ${var#pat}. 2010-10-29 19:34:57 +00:00
trim7.0 sh: Fix some parameter expansion variants ${#...}. 2011-03-13 20:02:39 +00:00
trim8.0 sh: Add UTF-8 support to pattern matching. 2011-05-08 11:32:20 +00:00