mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
fix for (z) flag, don't take # as comment (12228)
This commit is contained in:
parent
cc2213b340
commit
d861bb9805
3 changed files with 10 additions and 4 deletions
|
@ -2058,15 +2058,15 @@ mod_export LinkList
|
|||
bufferwords(LinkList list, char *buf, int *index)
|
||||
{
|
||||
int num = 0, cur = -1, got = 0, ne = noerrs, ocs = cs;
|
||||
int owb = wb, owe = we, oadx = addedx, ozp = zleparse;
|
||||
int owb = wb, owe = we, oadx = addedx, ozp = zleparse, oexp = expanding;
|
||||
char *p;
|
||||
|
||||
if (!list)
|
||||
list = newlinklist();
|
||||
|
||||
zleparse = 1;
|
||||
zleparse = 3;
|
||||
addedx = 0;
|
||||
noerrs = 1;
|
||||
noerrs = expanding = 1;
|
||||
lexsave();
|
||||
if (buf) {
|
||||
int l = strlen(buf);
|
||||
|
@ -2133,6 +2133,7 @@ bufferwords(LinkList list, char *buf, int *index)
|
|||
inpop();
|
||||
errflag = 0;
|
||||
zleparse = ozp;
|
||||
expanding = oexp;
|
||||
noerrs = ne;
|
||||
lexrestore();
|
||||
cs = ocs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue