Peter Stephenson
faeb9555d3
36760: more care with already unmetafied pattern trial strings
2015-10-03 20:25:57 +01:00
Peter Stephenson
807a8338a3
36737: Ensure we don't dreference unterminated zero-length string
2015-10-01 16:21:18 +01:00
Peter Stephenson
5336587307
36711: Allocate unmetafied pattern trial string on the heap
2015-09-30 10:19:16 +01:00
Peter Stephenson
d07783628e
36700: unmetafy early for parameter match
2015-09-29 19:47:21 +01:00
Peter Stephenson
f9d7651c25
36682: expand pattern interface to optimise unmetafication
2015-09-28 20:31:51 +01:00
Peter Stephenson
df0d86b847
36559: test earlier for overflow in pattern range
2015-09-19 23:08:46 +01:00
Peter Stephenson
e86b3cce47
36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.
2015-09-10 20:05:48 +01:00
Peter Stephenson
938c4c1e4a
36421: fix breakage in pattern change in 36415
2015-09-04 13:40:28 +01:00
Peter Stephenson
f52795ea3e
36415: remap bytes from invalid multibyte characters.
...
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-09-04 10:07:51 +01:00
Barton E. Schaefer
df5f825538
36033: a few more queue_signals() to protect global state changes
2015-08-09 17:37:23 -07:00
Han Pingtian
77130df674
35514: [[:foo:]] tests in completion should be more specific
2015-06-24 14:56:32 +01:00
Peter Stephenson
2abba7243a
35386: expand tabs where useful in builtins outputing function.
...
Also add to zed -f.
Option is -x <numm>.
2015-06-05 11:21:22 +01:00
Peter Stephenson
e86720190e
35131: allow "[]" to match empty character set.
...
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-15 09:35:24 +01:00
Jun-ichi Takimoto
a6db0b41ca
35064: rename ISPRINT to ZISPRINT to avoid conflict
2015-05-09 16:02:37 +09:00
Jun-ichi Takimoto
4bc554bb8b
34636: replace broken isprint() on Mac OS X
2015-03-05 01:48:34 +09:00
Peter Stephenson
8bf3595e3a
users/19059 based on users/19058: remove ineffiency with multiple * matches
2014-09-08 16:38:51 +01:00
Barton E. Schaefer
8672d19f0c
32500: handle interrupts during pattern matching
2014-03-20 07:56:30 -07:00
Peter Stephenson
db23c63005
32136: fix problem with kshglob.
...
Non-pattern characters that could be followed by "(" to introduce
a ksh glob but weren't caused failures.
2013-12-16 22:20:06 +00:00
Peter Stephenson
375115c7df
unposted: updates for 4.0.2-test-1.
...
Update references to 4.0.2 to 4.0.3.
Additional mod_export declarations.
Additions to .distfiles.
2013-11-06 19:25:07 +00:00
Peter Stephenson
1c172cb080
31877: fix behaviour of disable -p with parentheses
2013-10-24 18:45:50 +01:00
Mikael Magnusson
fa03332635
31805: Add $patchars and $dis_patchars to zsh/parameter module
2013-10-11 14:57:57 +02:00
Peter Stephenson
60debf388f
31764: Dewreakify havoc caused by pattern disables on glob qualifiers.
...
Don't use the zpc_specials array before it's defined, it's rude.
2013-09-23 21:02:31 +01:00
Peter Stephenson
347a63da0c
31465: fix basic completion and globbing uses of disabled patterns
2013-06-13 18:40:36 +01:00
Peter Stephenson
fdf2867e5f
31444: Basic code for enable/disable -p
2013-06-13 18:38:33 +01:00
Peter Stephenson
68d0d76db5
31441: use array to decide which forms of pattern are enabled
2013-06-01 20:39:09 +01:00
Bart Schaefer
0c226a6282
31158: following a wildcard with a repetition produces a bad pattern error
2013-03-19 15:05:35 +00:00
Peter Stephenson
f0287c6e17
users/14723: invalid converted characters should never match valid ones
2010-01-21 11:11:05 +00:00
Peter Stephenson
71865fd36d
27021: fix length of saved glob flags in pattern matching
2009-05-29 21:06:40 +00:00
Peter Stephenson
85c513894d
26047: convert lower levels of completion matching to use
...
multibyte strings and wide characters
2008-11-15 21:27:45 +00:00
Peter Stephenson
b4d336aaca
25845: fix pattern but with backslashed and metafied charaters
2008-10-11 21:57:03 +00:00
Peter Stephenson
bb68ee8db7
25138(? mailing list stuck): rewrite of completion matching.
...
Will one day use multibyte/wide characters, doesn't yet.
2008-06-08 17:53:53 +00:00
Peter Stephenson
63b0ca8f37
25055: remove unnecessary debug test
2008-05-17 12:15:19 +00:00
Peter Stephenson
3587f599b0
unposted: fix position of cursor on forward pattern searching
2008-04-26 21:26:28 +00:00
Peter Stephenson
234c6ed193
24878: add incremental pattern searches
2008-04-26 19:51:08 +00:00
Peter Stephenson
7389a42d17
24708: Misc/globtests, Src/pattern.c, Test/D02glob.ztst:
...
fix backtracking problem in (#c) pattern
2008-03-30 22:14:22 +00:00
Peter Stephenson
56e1904e45
fix optimisation of string matching with multibyte mode
...
24732: attempt to provide adequate space for sched ztrftime string with
multibyte characters
2008-03-25 17:47:10 +00:00
Peter Stephenson
988be99034
users/12087: fix globbing problem on Cygwin
2007-10-23 16:09:10 +00:00
Peter Stephenson
a81e5a609e
add (#cN,M) globbing flag
2007-07-27 21:51:32 +00:00
Peter Stephenson
ee9b17ad2a
22572: use of (#m) was broken with pure strings
2006-08-01 11:58:04 +00:00
Peter Stephenson
09bc7ee2b5
22557: turn on multibyte option by default
2006-07-25 18:10:37 +00:00
Peter Stephenson
b9bf52d1fc
fix typos in 22556
2006-07-25 09:25:26 +00:00
Peter Stephenson
50e9ab122b
22556: Multibyte separators and delimiters
2006-07-24 22:00:19 +00:00
Peter Stephenson
6157c14d06
22525: lengths and cases of multibyte strings in parameters and history
2006-06-28 13:12:55 +00:00
Wayne Davison
dbc5657d34
Got rid of several compiler warnings about signed/unsigned problems by
...
switching patchar_t from wchar_t to wint_t (and renaming the typedef to
patint_t in the process), changing two "int" variables into "patint_t"
variables, and creating a PEOF define that uses either WEOF or EOF as an
invalid character value instead of a literal -1.
2006-05-31 01:02:05 +00:00
Peter Stephenson
87b0f1c859
22432: bug with backtracking over repeated single parameterhs
2006-04-25 17:40:26 +00:00
Peter Stephenson
20198effd4
22429: fix bug with pure string matching
2006-04-25 13:01:52 +00:00
Peter Stephenson
3f7d4db1e5
22409: fix --disable-multibyte patterns
2006-04-09 21:55:10 +00:00
Peter Stephenson
ef330a5dfd
22408: support for multibyte characters in patterns
2006-04-09 21:47:21 +00:00
Peter Stephenson
cca66ab341
21862/21863: GLOB_SUBST shouldn't swallow up backslashes in parameter
...
substitutions that don't match anything.
2005-10-11 16:48:05 +00:00
Peter Stephenson
409296e22f
21736: improve tests for word and identifier characters with multibyte input
2005-09-20 15:10:26 +00:00