busybox/shell/ash_test/ash-psubst
Ron Yorston a1b0d3856d ash: add process substitution in bash-compatibility mode
Process substitution is a Korn shell feature that's also available
in bash and some other shells.  This patch implements process
substitution in ash when ASH_BASH_COMPAT is enabled.

function                                             old     new   delta
argstr                                              1386    1522    +136
strtodest                                              -      52     +52
readtoken1                                          3346    3392     +46
.rodata                                           183206  183250     +44
unwindredir                                            -      28     +28
cmdloop                                              365     372      +7
static.spclchars                                      10      12      +2
cmdputs                                              380     367     -13
exitreset                                             86      69     -17
evalcommand                                         1754    1737     -17
varvalue                                             675     634     -41
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/4 up/down: 315/-88)           Total: 227 bytes
   text	   data	    bss	    dec	    hex	filename
 953967	   4219	   1904	 960090	  ea65a	busybox_old
 954192	   4219	   1904	 960315	  ea73b	busybox_unstripped

v2: Replace array of file descriptors with a linked list.
    Include tests that were unaccountably omitted from v1.
v3: Update linked list code to the intended version.
v4: Change order of conditional code in cmdputs().
v5: Use existing popredir() mechanism to manage file descriptors.
v6: Rebase to latest version of BusyBox ash.  Reduce code churn.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-06-05 23:37:19 +02:00
..
bash_procsub.right ash: add process substitution in bash-compatibility mode 2021-06-05 23:37:19 +02:00
bash_procsub.tests ash: add process substitution in bash-compatibility mode 2021-06-05 23:37:19 +02:00
emptytick.right ash: add LINENO support 2018-01-27 22:02:05 +01:00
emptytick.tests ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick2.right ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick2.tests ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick3.right ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick3.tests ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick4.right ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick4.tests ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick_huge.right ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick_huge.tests ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick_in_heredoc.right ash: expand: Fix trailing newlines processing in backquote expanding 2020-02-17 10:24:32 +01:00
tick_in_heredoc.tests ash: expand: Fix trailing newlines processing in backquote expanding 2020-02-17 10:24:32 +01:00
tick.right ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00
tick.tests ash: add most of hush process subst tests 2017-07-24 12:49:49 +02:00