diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-12-16 22:20:06 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-12-16 22:20:06 +0000 |
commit | db23c630051fe330782cda4089a16de7ec579f29 (patch) | |
tree | a5116fd1f42c7d42b5490d169a054a344731bf82 /Src/zsh.h | |
parent | f06851f50d78b17a45159976aa167682ffdb87c2 (diff) | |
download | zsh-db23c630051fe330782cda4089a16de7ec579f29.tar.gz zsh-db23c630051fe330782cda4089a16de7ec579f29.tar.xz zsh-db23c630051fe330782cda4089a16de7ec579f29.zip |
32136: fix problem with kshglob.
Non-pattern characters that could be followed by "(" to introduce a ksh glob but weren't caused failures.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index a935d23ad..c86d2a62c 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1417,7 +1417,11 @@ enum zpc_chars { ZPC_HAT, /* ^ for exclusion (extended glob) */ ZPC_HASH, /* # for repetition (extended glob) */ ZPC_BNULLKEEP, /* Special backslashed null not removed */ - ZPC_KSH_QUEST, /* ? for ?(...) in KSH_GLOB */ + /* + * These characters are only valid before a parenthesis + */ + ZPC_NO_KSH_GLOB, + ZPC_KSH_QUEST = ZPC_NO_KSH_GLOB, /* ? for ?(...) in KSH_GLOB */ ZPC_KSH_STAR, /* * for *(...) in KSH_GLOB */ ZPC_KSH_PLUS, /* + for +(...) in KSH_GLOB */ ZPC_KSH_BANG, /* ! for !(...) in KSH_GLOB */ |