From ca29f22a8667e8ea4b6eccec1d2632d57e432e43 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 2 May 2001 09:23:07 +0000 Subject: remove quotes when looking at arguments in comparguments (14198) --- Src/Zle/computil.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 29ea5a298..421916421 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1317,6 +1317,12 @@ ca_parse_line(Cadef d, int multi, int first) dopt = NULL; doff = state.singles = arglast = 0; + /* remove quotes */ + line = dupstring(line); + parse_subst_string(line); + remnulargs(line); + untokenize(line); + if (ca_inactive(d, argxor, cur, 0, NULL) || ((d->flags & CDF_SEP) && cur != compcurrent && !strcmp(line, "--"))) { if (ca_inactive(d, NULL, cur, 1, NULL)) -- cgit 1.4.1