about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-06-04 09:51:23 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-06-04 09:51:23 -0700
commit984c18048b81c39bc06b73b484ee6e0d40340e19 (patch)
treeff292709585b9143dcd48ec42326fa28b04c52a3 /Src/subst.c
parent9c7f298447bc225666f9baa957ce933f5493d437 (diff)
downloadzsh-984c18048b81c39bc06b73b484ee6e0d40340e19.tar.gz
zsh-984c18048b81c39bc06b73b484ee6e0d40340e19.tar.xz
zsh-984c18048b81c39bc06b73b484ee6e0d40340e19.zip
38599: skip the "no such named directory" warning when NO_EXEC is in effect
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 4e13ce11d..8e704b1c1 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -691,7 +691,7 @@ filesubstr(char **namptr, int assign)
 		return 0;
 	    *ptr = 0;
 	    if (!(hom = getnameddir(++str))) {
-		if (isset(NOMATCH))
+		if (isset(NOMATCH) && isset(EXECOPT))
 		    zerr("no such user or named directory: %s", str);
 		*ptr = save;
 		return 0;