summaryrefslogtreecommitdiff
path: root/Src/pattern.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-03unposted: Record as comments some notes about namespace usage exceptions.Bart Schaefer1-0/+1
2023-08-0152008: Pattern bug with branches + exclusionPeter Stephenson1-2/+20
Add tests.
2022-12-1651212: remove STOUC() macroOliver Kiddle1-40/+41
This served as a workaround for ancient compilers where casts to unsigned char were broken.
2022-04-2050081: reset global mbstate_t variables when LC_CTYPE changesJun-ichi Takimoto1-0/+10
2021-04-1047913: implement CASE_PATHS option to make NO_CASE_GLOB more sensibleBart Schaefer1-1/+8
2021-04-0447784: silence a compiler waring from pattern.cFelipe Contreras1-1/+1
2020-01-0945269: Fix misspellings in completions and elsewhere.Jens Schleusener1-1/+1
2019-12-1145004: Fix typos in commentsMartijn Dekker1-9/+9
2019-05-2844361: Initialise variables in pattern matching.Peter Stephenson1-10/+12
These are used recursively and it's a bit obscure if there are case where the value can leak.
2018-05-1742790: make [[:blank:]] match non-ASCII blanksStephane Chazelas1-2/+17
2017-05-1241090: Replace iswprint() if unicode9 is enabled.Jun-ichi Takimoto1-1/+1
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-03-0740760: Always tokenize unquoted - to Dash.Peter Stephenson1-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.
2017-01-0340265: Fix problems with pure string in patterns with Meta.Peter Stephenson1-7/+1
Copy instead of relying on jiggery pokery with memory reallocation. Problem was triggering with string ending with Dash converted to -.
2016-10-2039688: Skip out of P_EXACTLY pattern loop if P_PURES.Peter Stephenson1-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.
2016-10-2039683: Update scan pointers after possible alloc.Peter Stephenson1-1/+5
Problem could cause next scan index to point into an invalid block when handling meta characters.
2016-03-2138188: signal re-entrancy, maybeBarton E. Schaefer1-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().
2016-03-2138142: signal re-entrancy, maybeBarton E. Schaefer1-5/+19
2016-01-1937689: ! and ^ need to be tokenised in character setsPeter Stephenson1-5/+8
2016-01-1937678: Now possible to quote "-" in pattern rangePeter Stephenson1-2/+2
2015-10-2736982: Fix bug with (#cN) patterns and remove redundant description.Peter Stephenson1-0/+1
We need to restore the current count of matches when returning to match at the point where we previously matched.
2015-10-0336760: more care with already unmetafied pattern trial stringsPeter Stephenson1-15/+40
2015-10-0136737: Ensure we don't dreference unterminated zero-length stringPeter Stephenson1-3/+7
2015-09-3036711: Allocate unmetafied pattern trial string on the heapPeter Stephenson1-27/+7
2015-09-2936700: unmetafy early for parameter matchPeter Stephenson1-7/+13
2015-09-2836682: expand pattern interface to optimise unmetaficationPeter Stephenson1-101/+236
2015-09-1936559: test earlier for overflow in pattern rangePeter Stephenson1-5/+18
2015-09-1036478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.Peter Stephenson1-9/+34
2015-09-0436421: fix breakage in pattern change in 36415Peter Stephenson1-1/+1
2015-09-0436415: remap bytes from invalid multibyte characters.Peter Stephenson1-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.
2015-08-0936033: a few more queue_signals() to protect global state changesBarton E. Schaefer1-1/+7
2015-06-2435514: [[:foo:]] tests in completion should be more specificHan Pingtian1-2/+2
2015-06-0535386: expand tabs where useful in builtins outputing function.Peter Stephenson1-9/+4
Also add to zed -f. Option is -x <numm>.
2015-05-1535131: allow "[]" to match empty character set.Peter Stephenson1-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.
2015-05-0935064: rename ISPRINT to ZISPRINT to avoid conflictJun-ichi Takimoto1-1/+1
2015-03-0534636: replace broken isprint() on Mac OS XJun-ichi Takimoto1-1/+1
2014-09-08users/19059 based on users/19058: remove ineffiency with multiple * matchesPeter Stephenson1-0/+10
2014-03-2032500: handle interrupts during pattern matchingBarton E. Schaefer1-1/+7
2013-12-1632136: fix problem with kshglob.Peter Stephenson1-4/+10
Non-pattern characters that could be followed by "(" to introduce a ksh glob but weren't caused failures.
2013-11-06unposted: updates for 4.0.2-test-1.Peter Stephenson1-2/+2
Update references to 4.0.2 to 4.0.3. Additional mod_export declarations. Additions to .distfiles.
2013-10-2431877: fix behaviour of disable -p with parenthesesPeter Stephenson1-18/+26
2013-10-1131805: Add $patchars and $dis_patchars to zsh/parameter moduleMikael Magnusson1-1/+2
2013-09-2331764: Dewreakify havoc caused by pattern disables on glob qualifiers.Peter Stephenson1-1/+2
Don't use the zpc_specials array before it's defined, it's rude.
2013-06-1331465: fix basic completion and globbing uses of disabled patternsPeter Stephenson1-0/+75
2013-06-1331444: Basic code for enable/disable -pPeter Stephenson1-0/+167
2013-06-0131441: use array to decide which forms of pattern are enabledPeter Stephenson1-81/+127
2013-03-1931158: following a wildcard with a repetition produces a bad pattern errorBart Schaefer1-1/+1
2010-01-21users/14723: invalid converted characters should never match valid onesPeter Stephenson1-7/+20
2009-05-2927021: fix length of saved glob flags in pattern matchingPeter Stephenson1-5/+6
2008-11-1526047: convert lower levels of completion matching to usePeter Stephenson1-8/+12
multibyte strings and wide characters
2008-10-1125845: fix pattern but with backslashed and metafied charatersPeter Stephenson1-1/+7