Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 45291: A glob with a trailing slash will now match unreadable/unexecutable ↵ | Daniel Shahaf | 2020-01-15 | 1 | -10/+39 |
| | | | | directories. | ||||
* | 45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a ↵ | Daniel Shahaf | 2020-01-02 | 1 | -2/+2 |
| | | | | potential match. | ||||
* | 45001: Fix zero-length matches with ${...%...} | Peter Stephenson | 2019-12-12 | 1 | -0/+6 |
| | | | | As the shortest match is preferred, zero-length matches beat any other. | ||||
* | 45004: Fix typos in comments | Martijn Dekker | 2019-12-11 | 1 | -2/+2 |
| | |||||
* | 44435: Handling digita arguments for :h and :t. | Peter Stephenson | 2019-06-20 | 1 | -1/+1 |
| | | | | | | | Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments. | ||||
* | 43091: In the (u) glob qualifier, expand and correct "unknown user" error ↵ | Daniel Shahaf | 2018-06-25 | 1 | -2/+4 |
| | | | | messages. | ||||
* | stat() for glob qualifiers lost information in corner case | Dima Kogan | 2017-11-20 | 1 | -1/+1 |
| | |||||
* | 41420: "{.." wasn't check for brace expansion properly | Peter Stephenson | 2017-07-13 | 1 | -0/+2 |
| | |||||
* | 40891: fix more zero-length matches. | Peter Stephenson | 2017-03-23 | 1 | -1/+3 |
| | | | | This time at the end of the trial string. | ||||
* | 22601: Fix for parameter substitution pattern matches. | Peter Stephenson | 2017-03-23 | 1 | -2/+6 |
| | | | | | It was not possible to math against a zero-length string in some cases. | ||||
* | 40819: Fix IS_DASH test in BRACE_CCL handling | Peter Stephenson | 2017-03-10 | 1 | -1/+2 |
| | |||||
* | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 2017-03-07 | 1 | -10/+13 |
| | | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care. | ||||
* | 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵ | Barton E. Schaefer | 2017-01-29 | 1 | -5/+12 |
| | | | | not re-entrant. | ||||
* | 40035: Cosmetic fixes for comments and documentation. | Eitan Adler | 2016-11-29 | 1 | -1/+1 |
| | | | | Mostly fixes to doubled words. | ||||
* | 39958: Add extra byte to PATH_MAX allocations. | Peter Stephenson | 2016-11-17 | 1 | -2/+2 |
| | | | | | This ensures we've got enough space for a null, although this isn't always needed. | ||||
* | 39723: metafy string passed to pattern in complist. | Peter Stephenson | 2016-10-25 | 1 | -0/+4 |
| | | | | Also additional safety tokenizing a string with Meta characters. | ||||
* | users/21793: Remove raw integers as glob qualifiers. | Peter Stephenson | 2016-07-28 | 1 | -8/+1 |
| | | | | | | | There was an ancient undocumented feature that these were treated as a file mode to "or" with that of the file under test. The only documented way of doing this has always been the "f" qualifier, so removed the effect of raw integers to make errors more obvious. | ||||
* | 38853: use strchr() | Peter Stephenson | 2016-07-20 | 1 | -7/+1 |
| | |||||
* | 38879: Unmetafy file names for glob sort. | Peter Stephenson | 2016-07-18 | 1 | -1/+29 |
| | | | | | Test using Polish UTF-8 collation sequence that'w known to cause the problems. | ||||
* | 37868: add 'static' to file local variables | Jun-ichi Takimoto | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | 37693: turn Dash into '-' in glob qualifiers | Peter Stephenson | 2016-01-19 | 1 | -1/+4 |
| | |||||
* | 37689: ! and ^ need to be tokenised in character sets | Peter Stephenson | 2016-01-19 | 1 | -15/+4 |
| | |||||
* | 37678: Now possible to quote "-" in pattern range | Peter Stephenson | 2016-01-19 | 1 | -3/+19 |
| | |||||
* | 37483: save and possibly restore cshnullglob failure state around each ↵ | Barton E. Schaefer | 2016-01-01 | 1 | -1/+4 |
| | | | | evaluation of an (e:...:) glob qualifier. | ||||
* | 37092: make nested ${(P)name} properly refer to parameter on return | Peter Stephenson | 2015-11-11 | 1 | -1/+1 |
| | |||||
* | 37022: add GLOB_STAR_SHORT option to abbreviate ** and *** | Peter Stephenson | 2015-10-30 | 1 | -18/+25 |
| | |||||
* | 36711: Allocate unmetafied pattern trial string on the heap | Peter Stephenson | 2015-09-30 | 1 | -25/+0 |
| | |||||
* | unposted: fix typo in comment. | Barton E. Schaefer | 2015-09-29 | 1 | -1/+1 |
| | |||||
* | 36700: unmetafy early for parameter match | Peter Stephenson | 2015-09-29 | 1 | -181/+255 |
| | |||||
* | 36682: expand pattern interface to optimise unmetafication | Peter Stephenson | 2015-09-28 | 1 | -25/+31 |
| | |||||
* | 36603: glob: fix dirfd leak during Y shortcut qualifier | Mikael Magnusson | 2015-09-24 | 1 | -1/+3 |
| | |||||
* | 36491: Multibyte support for parameter expansion flags B,E,N | Jun-ichi Takimoto | 2015-09-12 | 1 | -3/+3 |
| | |||||
* | 36264: glob and pattern variable pathbuf is metafied. | Peter Stephenson | 2015-08-21 | 1 | -4/+10 |
| | | | | | Document this and unmetafy it when passing to system calls, including lchdir() which is a system-level interface. | ||||
* | 36084: use zrealloc() consistently | Barton E. Schaefer | 2015-08-10 | 1 | -1/+1 |
| | |||||
* | 36033: a few more queue_signals() to protect global state changes | Barton E. Schaefer | 2015-08-09 | 1 | -0/+4 |
| | |||||
* | Add non-metafied character length handling. | Peter Stephenson | 2015-06-12 | 1 | -7/+7 |
| | | | | | | | Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters. | ||||
* | 34965: consistent use of zalloc/zrealloc/zfree | Barton E. Schaefer | 2015-04-25 | 1 | -3/+3 |
| | |||||
* | 34837: avoid loss of original file path when applying colon-modifiers in ↵ | Barton E. Schaefer | 2015-04-03 | 1 | -2/+2 |
| | | | | glob qualifiers | ||||
* | 34634: avoid infinite recursion on (/)# extendedglob | Barton E. Schaefer | 2015-02-27 | 1 | -1/+2 |
| | |||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 1 | -5/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles. | ||||
* | 33854: errors end recursion through scanner() | Barton E. Schaefer | 2014-12-07 | 1 | -1/+1 |
| | | | | Makes **/ more easily interruptible | ||||
* | users/19143: fix depth glob search with trailing slashes | Peter Stephenson | 2014-09-25 | 1 | -0/+3 |
| | |||||
* | 33136: P glob qual appends words when negated | Mikael Magnusson | 2014-09-16 | 1 | -6/+15 |
| | |||||
* | 33038: Fix {^@..a} hanging | Mikael Magnusson | 2014-08-21 | 1 | -2/+2 |
| | |||||
* | 32931: with NO_NOMATCH, a subscript glob qualifier on a not-matching pattern ↵ | Barton E. Schaefer | 2014-07-31 | 1 | -0/+2 |
| | | | | returns the original pattern | ||||
* | 32767: another spot to tweak bracechardots() | Jun T | 2014-06-11 | 1 | -0/+2 |
| | |||||
* | 32766: bracechardots() agrees with xpandbraces() about what constitutes a ↵ | Barton E. Schaefer | 2014-06-10 | 1 | -0/+2 |
| | | | | {C1..C2} pattern, thus preventing crash | ||||
* | 32765: fix build when not MULTIBYTE_SUPPORT | Jun T | 2014-06-10 | 1 | -2/+14 |
| | |||||
* | 32723: add braces around some if/else branches | Barton E. Schaefer | 2014-06-05 | 1 | -4/+7 |
| | |||||
* | 32708: glob qualifier (Y) implies (oN) | Daniel Shahaf | 2014-06-04 | 1 | -3/+4 |
| | | | | plus incidental patch to avoid adding a meaningless bitvalue to sort-order flags |