about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2021-06-28 15:42:01 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2021-06-28 15:42:01 +0100
commitd293c12de696c190f2db4d565484ae48cf2bf977 (patch)
treee942d6ae32a6ea6b358cd1a9c313ec48284957f7 /Src
parent2912139261960da1229e49cd33f7ed90e8f37e99 (diff)
downloadzsh-d293c12de696c190f2db4d565484ae48cf2bf977.tar.gz
zsh-d293c12de696c190f2db4d565484ae48cf2bf977.tar.xz
zsh-d293c12de696c190f2db4d565484ae48cf2bf977.zip
49102: Ignore dynamic directory name failure if NO_EXEC
Diffstat (limited to 'Src')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 9928be0e9..87a56c3c6 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -765,7 +765,7 @@ filesubstr(char **namptr, int assign)
 		*namptr = dyncat(res, ptr2+1);
 		return 1;
 	    }
-	    if (isset(NOMATCH))
+	    if (isset(NOMATCH) && isset(EXECOPT))
 		zerr("no directory expansion: ~[%s]", tmp);
 	    return 0;
 	} else if (!inblank(str[1]) && isend(*ptr) &&