about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-01-27 18:07:05 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-01-27 18:07:05 +0000
commitf3eaa04740857b9771c6e1ca3f4e86e6696b461e (patch)
tree3e4f32b390e02585a646ac3cc5261d0a67baa567 /Src/subst.c
parenteec64f625afd6cd873dc35f4978f8d20b2b817fb (diff)
downloadzsh-f3eaa04740857b9771c6e1ca3f4e86e6696b461e.tar.gz
zsh-f3eaa04740857b9771c6e1ca3f4e86e6696b461e.tar.xz
zsh-f3eaa04740857b9771c6e1ca3f4e86e6696b461e.zip
16215: save and restore mult_isarr in singsub()
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 523e4e320..2e1c05849 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -245,11 +245,13 @@ globlist(LinkList list, int nountok)
 mod_export void
 singsub(char **s)
 {
+    int omi = mult_isarr;
     local_list1(foo);
 
     init_list1(foo, *s);
 
     prefork(&foo, PF_SINGLE);
+    mult_isarr = omi;
     if (errflag)
 	return;
     *s = (char *) ugetnode(&foo);