busybox/shell/ash_test
Denys Vlasenko 350e686f3b ash: [PARSER] Recognise here-doc delimiters terminated by EOF
Upstream commit 1:

    Date: Wed, 26 Sep 2007 17:14:16 +0800
    [PARSER] Recognise here-doc delimiters terminated by EOF

    Previously dash required a <newline> character to be present in order for
    a here-document delimiter to be detected.  Allowing EOF in the absence of
    a <newline> to play the same purpose allows some intuitive scripts to
    succeed.  POSIX seems to be silence on this so this should be OK.

    Test case:

        eval 'cat <<- NOT
                test
        NOT'
        echo OK

    Old result:

        test
        NOTOK

    New result:

        test
        OK

Upstream commit 2:

    Date: Sat, 20 Oct 2007 18:49:31 +0800
    [PARSER] Fix here-doc corruption

    The change

        [PARSER] Recognise here-doc delimiters terminated by EOF

    introduced a regerssion whereby lines starting with eofmark but are not equal
    to eofmark would be corrupted.  This patch fixes it.

    Test case:

        cat << _ACEOF
        _ASBOX
        _ACEOF

    Old result:

        SASBOX

    New result:

        _ASBOX

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-26 16:26:45 +02:00
..
ash-alias
ash-arith shell/math: deconvolute and explain ?: handling. Give better error message 2010-09-16 11:50:46 +02:00
ash-glob ash: fix globbing bugs when using glibc glob() 2016-10-02 15:17:15 +02:00
ash-heredoc ash: [PARSER] Recognise here-doc delimiters terminated by EOF 2016-10-26 16:26:45 +02:00
ash-invert
ash-misc ash testsuite: fix false positives 2016-10-07 04:07:05 +02:00
ash-quoting hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
ash-read ash testsuite: remove two inadvertent bashisms 2016-10-01 17:30:21 +02:00
ash-redir sh testsuite: sync ash-redir/ and hush-redir/ 2016-10-02 18:32:52 +02:00
ash-signals typo fixes 2016-10-26 13:15:35 +02:00
ash-standalone ash: fix unset in standalone mode 2010-06-18 14:23:47 +02:00
ash-vars ash: [PARSER] Fix parsing of ${##1} 2016-10-26 15:56:53 +02:00
.gitignore ash_test: ignore generated files 2016-03-22 18:15:24 -04:00
printenv.c ash_test: printenv: fix missing includes 2016-03-22 18:15:14 -04:00
recho.c whitespace cleanup 2010-10-29 11:46:52 +02:00
run-all ash tests: make test print test name before it is run 2015-10-29 20:34:20 +01:00
zecho.c whitespace cleanup 2010-10-29 11:46:52 +02:00