about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-03 07:13:37 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-03 07:13:37 +0000
commit1e79a3424fa4e84da07d3df53e614a1a297d833f (patch)
treefd21384e3dd39a34e4f7402e09ae6f73dc1f90f8
parentdb7f83187124e5d90048241b6390a3354b4058db (diff)
downloadzsh-1e79a3424fa4e84da07d3df53e614a1a297d833f.tar.gz
zsh-1e79a3424fa4e84da07d3df53e614a1a297d833f.tar.xz
zsh-1e79a3424fa4e84da07d3df53e614a1a297d833f.zip
14214
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/computil.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d22b91a7..26af02252 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-03  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 14214: Src/Zle/computil.c: ignore errors when removing quotes
+
 2001-05-02  Bart Schaefer  <schaefer@zsh.org>
 
 	* 14206: configure.in: Fix bug introduced by 14177; also, only
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 421916421..90544b9c2 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1253,7 +1253,7 @@ ca_parse_line(Cadef d, int multi, int first)
     Caopt ptr, wasopt = NULL, dopt;
     struct castate state;
     char *line, *pe, **argxor = NULL;
-    int cur, doff, argend, arglast;
+    int cur, doff, argend, arglast, ne;
     Patprog endpat = NULL, napat = NULL;
     LinkList sopts = NULL;
 
@@ -1319,7 +1319,10 @@ ca_parse_line(Cadef d, int multi, int first)
 
         /* remove quotes */
         line = dupstring(line);
+        ne = noerrs;
+        noerrs = 2;
         parse_subst_string(line);
+        noerrs = ne;
         remnulargs(line);
         untokenize(line);