Op 09-02-18 om 17:07 schreef Martijn Dekker: > Op 09-02-18 om 16:27 schreef Stephane Chazelas: >> Note that there's also: >> >> cat << EOF >> foo >> E\ >> OF >> >> which zsh does differently from other shells (and that nobody >> would ever do). > > IOW, all shells support line continuation within the terminating > delimiter except zsh. Eesh. > > Somebody somewhere has probably done this. I'll see if I can rethink my > patch to fix this as well. Stéphane helped me realise my whole approach to the patch was wrong. Of course line continuation should be handled within the loop that parses a line in the first place, and not in between parsing individual lines. No extra flag is needed at all. Here's take two, which should fix all three issues. I also added a test case, and slightly edited another test case to make sure line continuation is not parsed if the delimiter is quoted. - Martijn