From 417cb94fe147a94d16e3935deb83250a51cd62a8 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Thu, 31 Jul 2014 23:46:21 -0700 Subject: 32931: with NO_NOMATCH, a subscript glob qualifier on a not-matching pattern returns the original pattern --- Src/glob.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/glob.c') diff --git a/Src/glob.c b/Src/glob.c index 1e9195049..627166c7a 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -1906,6 +1906,8 @@ zglob(LinkList list, LinkNode np, int nountok) matchptr++; } } + } else if (!badcshglob && !isset(NOMATCH) && matchct == 1) { + insert_glob_match(list, node, (--matchptr)->name); } free(matchbuf); -- cgit 1.4.1