busybox/shell/ash_test/ash-psubst
Denys Vlasenko 9ee5892798 ash: expand: Fix trailing newlines processing in backquote expanding
Upstream commit:

    Date: Mon, 29 Apr 2019 19:13:37 +0500
    expand: Fix trailing newlines processing in backquote expanding

    According to POSIX.1-2008 we should remove newlines only at the end of
    the substitution. Newlines-only substitions causes dash to remove
    newlines before beggining of the substitution. The following code:

        cat <<END
        1
        $(echo "")
        2
        END

    prints "1<newline>2" instead of expected "1<newline><newline>2".

    This patch fixes trailing newlines processing in backquote expanding.

    Signed-off-by: Nikolai Merinov <n.merinov@inango-systems.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2020-02-17 10:24:32 +01: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