mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01:00
40940: untokenize names of condition features before attempting to look up the definition from a module.
Necessary because of 40760 (tokenization of '-' as Dash).
This commit is contained in:
parent
ce7a98fc05
commit
ca2a43f23c
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-04-07 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 40940: Src/cond.c: untokenize names of condition features
|
||||
before attempting to look up the definition from a module.
|
||||
Necessary because of 40760 (tokenization of '-' as Dash).
|
||||
|
||||
2017-04-05 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* users/22653: Doc/Zsh/options.yo: Clarify REMATCH_PCRE
|
||||
|
|
|
@ -139,9 +139,9 @@ evalcond(Estate state, char *fromtest)
|
|||
l = 2;
|
||||
}
|
||||
if (name && IS_DASH(name[0]))
|
||||
errname = name;
|
||||
untokenize(errname = name);
|
||||
else if (strs[0] && IS_DASH(*strs[0]))
|
||||
errname = strs[0];
|
||||
untokenize(errname = strs[0]);
|
||||
else
|
||||
errname = "<null>";
|
||||
if (name && IS_DASH(name[0]) &&
|
||||
|
|
Loading…
Reference in a new issue