From e9a2060fe9b6f820df8deb30c2f113a3b7bcb46d Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 16 Apr 2002 07:53:13 +0000 Subject: treat backslashed bangs in double quotes specially in get_comp_string(), they are more like $s there (16990) --- Src/Zle/zle_tricky.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src/Zle/zle_tricky.c') diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 083a0968b..58c7359d5 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -1404,6 +1404,12 @@ get_comp_string(void) qisuf = n; } autoq = ztrdup(q); + + if (instring == 2) { + for (q = s; *q; q++) + if (*q == '\\' && q[1] == '!') + *q = Bnull; + } } /* While building the quoted form, we also clean up the command line. */ for (p = s, tt = qword, i = wb, j = 0; *p; p++, tt++, i++) -- cgit 1.4.1