diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2014-07-31 23:46:21 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-07-31 23:46:21 -0700 |
| commit | 417cb94fe147a94d16e3935deb83250a51cd62a8 (patch) | |
| tree | 0bda85eaecf6cacba26d6b1fd5a098c8abea9290 | |
| parent | missed updates to calls to ztrftime() (diff) | |
| download | zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.tar zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.tar.gz zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.tar.bz2 zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.tar.lz zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.tar.xz zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.tar.zst zsh-417cb94fe147a94d16e3935deb83250a51cd62a8.zip | |
32931: with NO_NOMATCH, a subscript glob qualifier on a not-matching pattern returns the original pattern
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | Src/glob.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2014-07-31 Barton E. Schaefer <schaefer@zsh.org> + + * 32931: Src/glob.c: with NO_NOMATCH, using a subscript glob + qualifier on a not-matching pattern should still return the + original pattern + 2014-07-30 Peter Stephenson <p.stephenson@samsung.com> * unposted: Src/Builtins/sched.c, Src/Modules/datetime.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); |
