summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-02 09:23:07 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-02 09:23:07 +0000
commitca29f22a8667e8ea4b6eccec1d2632d57e432e43 (patch)
tree254fab17ccb79f46bbc58998f210779d4e322bbf
parent47d8fd9b6c896a5b566ab79d8d18f351226455ea (diff)
downloadzsh-ca29f22a8667e8ea4b6eccec1d2632d57e432e43.tar.gz
zsh-ca29f22a8667e8ea4b6eccec1d2632d57e432e43.tar.xz
zsh-ca29f22a8667e8ea4b6eccec1d2632d57e432e43.zip
remove quotes when looking at arguments in comparguments (14198)
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/computil.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 13758fb30..8b6b53af4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-05-02  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 14198: Src/Zle/computil.c: remove quotes when looking at
+	arguments in comparguments
+
 	* 14197: Completion/Base/Completer/_expand: missing star in
 	suffix-style test pattern
 
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))