about summary refs log tree commit diff
path: root/Src/pattern.c
Commit message (Collapse)AuthorAgeFilesLines
* 41090: Replace iswprint() if unicode9 is enabled.Jun-ichi Takimoto2017-05-121-1/+1
| | | | If wcwidth() or iswprint() is broken, force enable unicode9.
* 40760: Always tokenize unquoted - to Dash.Peter Stephenson2017-03-071-1/+1
| | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care.
* 40265: Fix problems with pure string in patterns with Meta.Peter Stephenson2017-01-031-7/+1
| | | | | | Copy instead of relying on jiggery pokery with memory reallocation. Problem was triggering with string ending with Dash converted to -.
* 39688: Skip out of P_EXACTLY pattern loop if P_PURES.Peter Stephenson2016-10-201-2/+2
| | | | | | | If it's really a pure string, there's only one exact match. We could overwrite the next pointer; usually this didn't matter because we'd hit a termination, but if we reallocated we might be looking at garbage.
* 39683: Update scan pointers after possible alloc.Peter Stephenson2016-10-201-1/+5
| | | | | Problem could cause next scan index to point into an invalid block when handling meta characters.
* 38188: signal re-entrancy, maybeBarton E. Schaefer2016-03-211-34/+50
| | | | | | Crams several globals into a struct so they can be saved/restored as one, and then tries pushing the signal queue management down into patmatch() from pattryrefs().
* 38142: signal re-entrancy, maybeBarton E. Schaefer2016-03-211-5/+19
|
* 37689: ! and ^ need to be tokenised in character setsPeter Stephenson2016-01-191-5/+8
|
* 37678: Now possible to quote "-" in pattern rangePeter Stephenson2016-01-191-2/+2
|
* 36982: Fix bug with (#cN) patterns and remove redundant description.Peter Stephenson2015-10-271-0/+1
| | | | | We need to restore the current count of matches when returning to match at the point where we previously matched.
* 36760: more care with already unmetafied pattern trial stringsPeter Stephenson2015-10-031-15/+40
|
* 36737: Ensure we don't dreference unterminated zero-length stringPeter Stephenson2015-10-011-3/+7
|
* 36711: Allocate unmetafied pattern trial string on the heapPeter Stephenson2015-09-301-27/+7
|
* 36700: unmetafy early for parameter matchPeter Stephenson2015-09-291-7/+13
|
* 36682: expand pattern interface to optimise unmetaficationPeter Stephenson2015-09-281-101/+236
|
* 36559: test earlier for overflow in pattern rangePeter Stephenson2015-09-191-5/+18
|
* 36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.Peter Stephenson2015-09-101-9/+34
|
* 36421: fix breakage in pattern change in 36415Peter Stephenson2015-09-041-1/+1
|
* 36415: remap bytes from invalid multibyte characters.Peter Stephenson2015-09-041-6/+22
| | | | | | | These now go to 0xdc00 + index. If wchar_t is a Unicode code point, this is by construction an invalid character within the Unicode range. If it isn't, we would hope the result was no worse than the current fudge.
* 36033: a few more queue_signals() to protect global state changesBarton E. Schaefer2015-08-091-1/+7
|
* 35514: [[:foo:]] tests in completion should be more specificHan Pingtian2015-06-241-2/+2
|
* 35386: expand tabs where useful in builtins outputing function.Peter Stephenson2015-06-051-9/+4
| | | | | | Also add to zed -f. Option is -x <numm>.
* 35131: allow "[]" to match empty character set.Peter Stephenson2015-05-151-1/+10
| | | | | This only works if there's no further "]" in the pattern, since if there is the first "]" has to match a literal character.
* 35064: rename ISPRINT to ZISPRINT to avoid conflictJun-ichi Takimoto2015-05-091-1/+1
|
* 34636: replace broken isprint() on Mac OS XJun-ichi Takimoto2015-03-051-1/+1
|
* users/19059 based on users/19058: remove ineffiency with multiple * matchesPeter Stephenson2014-09-081-0/+10
|
* 32500: handle interrupts during pattern matchingBarton E. Schaefer2014-03-201-1/+7
|
* 32136: fix problem with kshglob.Peter Stephenson2013-12-161-4/+10
| | | | | Non-pattern characters that could be followed by "(" to introduce a ksh glob but weren't caused failures.
* unposted: updates for 4.0.2-test-1. zsh-5.0.2-test-1Peter Stephenson2013-11-061-2/+2
| | | | | | Update references to 4.0.2 to 4.0.3. Additional mod_export declarations. Additions to .distfiles.
* 31877: fix behaviour of disable -p with parenthesesPeter Stephenson2013-10-241-18/+26
|
* 31805: Add $patchars and $dis_patchars to zsh/parameter moduleMikael Magnusson2013-10-111-1/+2
|
* 31764: Dewreakify havoc caused by pattern disables on glob qualifiers.Peter Stephenson2013-09-231-1/+2
| | | | Don't use the zpc_specials array before it's defined, it's rude.
* 31465: fix basic completion and globbing uses of disabled patternsPeter Stephenson2013-06-131-0/+75
|
* 31444: Basic code for enable/disable -pPeter Stephenson2013-06-131-0/+167
|
* 31441: use array to decide which forms of pattern are enabledPeter Stephenson2013-06-011-81/+127
|
* 31158: following a wildcard with a repetition produces a bad pattern errorBart Schaefer2013-03-191-1/+1
|
* users/14723: invalid converted characters should never match valid onesPeter Stephenson2010-01-211-7/+20
|
* 27021: fix length of saved glob flags in pattern matchingPeter Stephenson2009-05-291-5/+6
|
* 26047: convert lower levels of completion matching to usePeter Stephenson2008-11-151-8/+12
| | | | multibyte strings and wide characters
* 25845: fix pattern but with backslashed and metafied charatersPeter Stephenson2008-10-111-1/+7
|
* 25138(? mailing list stuck): rewrite of completion matching.Peter Stephenson2008-06-081-73/+383
| | | | Will one day use multibyte/wide characters, doesn't yet.
* 25055: remove unnecessary debug testPeter Stephenson2008-05-171-1/+0
|
* unposted: fix position of cursor on forward pattern searchingPeter Stephenson2008-04-261-0/+10
|
* 24878: add incremental pattern searchesPeter Stephenson2008-04-261-0/+2
|
* 24708: Misc/globtests, Src/pattern.c, Test/D02glob.ztst:Peter Stephenson2008-03-301-0/+2
| | | | fix backtracking problem in (#c) pattern
* fix optimisation of string matching with multibyte modePeter Stephenson2008-03-251-1/+1
| | | | | 24732: attempt to provide adequate space for sched ztrftime string with multibyte characters
* users/12087: fix globbing problem on CygwinPeter Stephenson2007-10-231-1/+20
|
* add (#cN,M) globbing flagPeter Stephenson2007-07-271-8/+136
|
* 22572: use of (#m) was broken with pure stringsPeter Stephenson2006-08-011-0/+26
|
* 22557: turn on multibyte option by defaultPeter Stephenson2006-07-251-2/+2
|