busybox/shell/hush_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
..
hush-arith shell/math: deconvolute and explain ?: handling. Give better error message 2010-09-16 11:50:46 +02:00
hush-bugs hush: fix var3.tests 2016-10-02 21:12:02 +02:00
hush-glob hush testsuite: add glob_dir.tests 2016-10-02 15:20:57 +02:00
hush-heredoc ash: [PARSER] Recognise here-doc delimiters terminated by EOF 2016-10-26 16:26:45 +02:00
hush-invert hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-leak
hush-misc sh testsuite: add tests for exitcode on failure to exec 2016-10-03 00:55:34 +02:00
hush-parsing sh testsuite: create hush-redir/* and move files around 2016-10-02 17:55:51 +02:00
hush-psubst hush: fix handling of \" in quoted/unquoted cmd 2010-09-12 15:05:39 +02:00
hush-quoting hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-read hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-redir sh testsuite: sync ash-redir/ and hush-redir/ 2016-10-02 18:32:52 +02:00
hush-signals typo fixes 2016-10-26 13:15:35 +02:00
hush-standalone hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-vars ash: [PARSER] Fix parsing of ${##1} 2016-10-26 15:56:53 +02:00
hush-z_slow
.gitignore
run-all hush: fix a bug in FEATURE_SH_STANDALONE=y config. Closes 9186 2016-08-19 18:43:06 +02:00