summaryrefslogtreecommitdiffstats
path: root/Test/D02glob.ztst
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2025-12-21 12:46:04 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2025-12-21 12:54:51 +0900
commit3e72a52e27d8ce8d8be0ee65ae5f77f756c06fda (patch)
tree24fcb47088cc0360058a3accc148bfcf0c22c740 /Test/D02glob.ztst
parent54150: the option --license was removed in 2010 (diff)
downloadzsh-master.tar
zsh-master.tar.gz
zsh-master.tar.bz2
zsh-master.tar.lz
zsh-master.tar.xz
zsh-master.tar.zst
zsh-master.zip
53959+54149: fix a bug when redirecting to a pattern with no matchHEADmaster
when redirecting to/from a pattern (MULTIOS) and if there is no match, issue an error even if NULL_GLOB is in effect.
Diffstat (limited to 'Test/D02glob.ztst')
-rw-r--r--Test/D02glob.ztst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index 1526b6191..33458e3ba 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -541,6 +541,10 @@
>No file beginning with z
>Normal string if nullglob not set
+ echo > glob.tmp/nonexistent(N)
+1:redirect to a non-matching pattern is an error even with flag (N)
+?(eval):1: redirection failed (no match): glob.tmp/nonexistent(N)
+
(
setopt extended_glob no_nomatch
cd glob.tmp