ash: simplify EOF/newline handling in list parser
authorRon Yorston <rmy@pobox.com>
Thu, 29 Oct 2015 11:30:55 +0000 (11:30 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 29 Oct 2015 20:44:11 +0000 (21:44 +0100)
commitc0e007663d30f83b0e5e074db34dcffaa8915e99
tree4fe5fc1aced6973b4e6dfe758cef56127f10b343
parent6bd2fabc52fa76b69a65772878e2e745c0fff3ff
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>
shell/ash.c