From 2546c86244ec2bb458580a90a0a5e0648220ad9a Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 25 Jan 2015 12:27:51 -0800 Subject: 34389: fix parsing of ">!" when read from histfile with HIST_LEX_WORDS --- Src/hist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/hist.c b/Src/hist.c index 303c1dd4a..381c7e2e5 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -3473,7 +3473,8 @@ histsplitwords(char *lineptr, short **wordsp, int *nwordsp, int *nwordposp, if (*lptr == *wptr || (*lptr == '!' && *wptr == '|')) { lptr++; - wptr++; + if (!*++wptr) + break; } else if (lptr[0] == '\\' && lptr[1] == '\n') { /* -- cgit 1.4.1