1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

49102: Ignore dynamic directory name failure if NO_EXEC

This commit is contained in:
Peter Stephenson 2021-06-28 15:42:01 +01:00
parent 2912139261
commit d293c12de6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2021-06-28 Peter Stephenson <p.stephenson@samsung.com>
* 49102: Src/subst.c: Dynamic directory expansion failure is
ignored if NO_EXEC is set.
2021-06-22 Peter Stephenson <p.stephenson@samsung.com>
* 48906: Doc/Zsh/manual.yo, Doc/Zsh/metafaq.yo, Etc/FAQ.yo,

View file

@ -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) &&