Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] don't let char class disturb end finding
- X-seq: zsh-workers 35507
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] don't let char class disturb end finding
- Date: Wed, 17 Jun 2015 08:23:05 -0700
- In-reply-to: <20150617061628.GA27402@localhost.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150617061628.GA27402@localhost.localdomain>
On Jun 17, 2:16pm, Han Pingtian wrote:
}
} This patch try to fix this problem:
}
} compadd -M '[[:lower:]123456]=...' will cause the end of class to be the
} ']' before 1 and will alloc range of memory less than enough for the
} cpattern.
I don't see anything obviously wrong with the patch, but when I try the
above example directly I get "unknown match specification character `['"
both before and after applying your patch (and no complaints of memory
misuse from valgrind, even before your patch). Is that the correct
example to reproduce the error?
I also tried '[[:lower:]123456]=[[:upper:]abcdef]' with the same result.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author