From 3b32abafdb019cfb8f29908bc3d148e01518981d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 10 Jan 2015 20:28:57 +0000 Subject: 34220: new $(...) handling needs to back up over alias expansion --- Src/input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src') diff --git a/Src/input.c b/Src/input.c index 04dda5acd..2ecac7bdc 100644 --- a/Src/input.c +++ b/Src/input.c @@ -537,6 +537,12 @@ inpush(char *str, int flags, Alias inalias) static void inpoptop(void) { + if (!lexstop) { + inbufflags &= ~INP_ALCONT; + while (inbufptr > inbuf) + inungetc(inbufptr[-1]); + } + if (inbuf && (inbufflags & INP_FREE)) free(inbuf); -- cgit 1.4.1