ash: simplify EOF/newline handling in list parser
authorRon Yorston <rmy@pobox.com>
Thu, 29 Oct 2015 11:30:55 +0000 (11:30 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 22 Mar 2016 22:21:45 +0000 (18:21 -0400)
commitc1565a04f2d422f24b3331d57ceb384c7dc2933e
tree9b568a3d57fc4f834072a06fb38420a6ba862556
parentacad7392ee734ec286f0ae2b2e4550b5b4f49c10
ash: simplify EOF/newline handling in list parser

Processing of here documents in ash has had a couple of breakages
which are now the subject of tests.  This commit should fix both.

It is based on the following commit in dash git by Herbert Xu:

   <7c245aa> [PARSER] Simplify EOF/newline handling in list parser

(See git://git.kernel.org/pub/scm/utils/dash/dash.git)

Reported-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
(cherry picked from commit c0e007663d30f83b0e5e074db34dcffaa8915e99)
shell/ash.c