Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 43075: Support nanosecond-precision time formatting | dana | 2018-06-20 | 1 | -8/+14 |
| | | | | | | | | * Teach ztrftime() %9. and %N for nanoseconds * Update prompt expansion to pass sub-second times for time formatting * Update zsh/stat to pass sub-second times for atime/mtime/ctime Patch heavily based on Oliver's earlier work @ workers/24059 | ||||
* | 42650: fix 42156 for zero-sized terminals | Barton E. Schaefer | 2018-04-15 | 1 | -5/+7 |
| | | | | Also fix harmless no-op typo from hand-applying 42636 for previous commit. | ||||
* | 42636: fix GLOB_DOTS for !(RM_STAR_SILENT) | Barton E. Schaefer | 2018-04-15 | 1 | -4/+5 |
| | | | | Also fix paste-o in older log entry | ||||
* | 42607, CVE-2018-1100: check bounds on buffer in mail checking | Oliver Kiddle | 2018-04-07 | 1 | -3/+5 |
| | |||||
* | 42595: remove dead code flagged by coverity | Oliver Kiddle | 2018-04-07 | 1 | -3/+1 |
| | |||||
* | 42560: silence sign-compare compiler warnings | Oliver Kiddle | 2018-03-30 | 1 | -3/+3 |
| | |||||
* | 42539: prevent overflow of PATH_MAX-sized buffer in spelling correction | Oliver Kiddle | 2018-03-28 | 1 | -5/+9 |
| | |||||
* | 42538: Temporarily set umask for here document. | Martijn Dekker | 2018-03-27 | 1 | -0/+4 |
| | | | | Done while signals are queued. | ||||
* | 42480: optimize $#var for single-byte character sets | Barton E. Schaefer | 2018-03-25 | 1 | -1/+1 |
| | |||||
* | 42518, CVE-2018-1071: check bounds when copying path in hashcmd() | Oliver Kiddle | 2018-03-24 | 1 | -3/+3 |
| | |||||
* | 42332: Special case unsigned printf formats. | Peter Stephenson | 2018-01-31 | 1 | -0/+61 |
| | | | | | For constants we can avoid a conversion to signed by examining the expression before passing to math eval. | ||||
* | 42156: new CHECK_RUNNING_JOBS option demanded by bash groupies | Peter Stephenson | 2017-12-22 | 1 | -2/+2 |
| | | | | | | | Also new job options. Also suppress debug error if rows or columns are reported as zero as this is normal without a physical terminal. | ||||
* | unposted (cf. 41672): checkrmall: Record the 41672 bug in a TODO. | Daniel Shahaf | 2017-09-21 | 1 | -0/+3 |
| | |||||
* | unposted (cf. 41707): internal: Document the count==0 case of checkrmall(). | Daniel Shahaf | 2017-09-21 | 1 | -1/+3 |
| | |||||
* | unposted: internal: Document zreaddir(). | Daniel Shahaf | 2017-09-11 | 1 | -0/+10 |
| | |||||
* | Revert "41499 (with one further tweak): POSIX_STRINGS behaviour." | Peter Stephenson | 2017-08-08 | 1 | -18/+2 |
| | | | | | | | This reverts commit 2eacbef91913fe967335812900d43cf2edfa54d9. Conflicts: ChangeLog | ||||
* | 41499 (with one further tweak): POSIX_STRINGS behaviour. | Peter Stephenson | 2017-08-07 | 1 | -2/+18 |
| | | | | | Ignore a terminating delimiter when splitting as separators despite being called separators are terminators. | ||||
* | 41484: Make ${(q+)...} quote backsleshes. | Martijn Dekker | 2017-08-03 | 1 | -1/+5 |
| | |||||
* | 22760: fix partial string length reports with NO_MULTIBYTE | Peter Stephenson | 2017-07-02 | 1 | -1/+1 |
| | |||||
* | 41090: Replace iswprint() if unicode9 is enabled. | Jun-ichi Takimoto | 2017-05-12 | 1 | -2/+2 |
| | | | | If wcwidth() or iswprint() is broken, force enable unicode9. | ||||
* | 40181: Fix buffer overrun in xsymlinks. | Peter Stephenson | 2017-05-09 | 1 | -3/+11 |
| | | | | | There was no check for copying to the internal xbuf2 for a preliminary test. | ||||
* | 40994: unmeta_one() need not count Meta | Jun-ichi Takimoto | 2017-04-23 | 1 | -8/+1 |
| | |||||
* | 40935: User names need metafying. | Orlov Sergey | 2017-04-10 | 1 | -3/+3 |
| | | | | | On some systems they can contain 8-bit characters and on all systems this is logically correct anyway. | ||||
* | 40763: count wide characters and Cmatcher pointers more sanely in ↵ | Barton E. Schaefer | 2017-03-08 | 1 | -0/+42 |
| | | | | | | | cfp_matcher_pats(), and count characters in pattern_match() the same way to stay in sync Might not fix wide-char matching in completion matcher-lists but should avoid wild pointer crash | ||||
* | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 2017-03-07 | 1 | -3/+7 |
| | | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care. | ||||
* | 39982: $SPROMPT: Don't accept a spelling correction at space/tab. | Daniel Shahaf | 2016-11-24 | 1 | -4/+4 |
| | | | | | The patch also downscopes a couple of local variables, with no functional change. | ||||
* | 39958: Add extra byte to PATH_MAX allocations. | Peter Stephenson | 2016-11-17 | 1 | -6/+6 |
| | | | | | This ensures we've got enough space for a null, although this isn't always needed. | ||||
* | 39943: no need to compute arrlen() in arrdup_max() when max == 0. | Barton E. Schaefer | 2016-11-15 | 1 | -2/+3 |
| | |||||
* | 39949: Special case for "-" in directory names. | Peter Stephenson | 2016-11-15 | 1 | -31/+39 |
| | | | | | It can be sh-tokenized to Dash to allow for appearing in ranges after substitution, so needs to be turned back to "-" in that case. | ||||
* | 39906: More multibyte optimisations for US-ASCII. | Peter Stephenson | 2016-11-14 | 1 | -3/+23 |
| | | | | | This treats characters 0 to 0x7f as single byte US-ASCII along the lines we already do in other places in the code. | ||||
* | 39886 based on 39877: Optimise arrdup to arrdup_max. | Peter Stephenson | 2016-11-09 | 1 | -0/+25 |
| | | | | Only duplicate as much of the array as is needed. | ||||
* | unposted: follow up to 39867: don't need test against zero | Peter Stephenson | 2016-11-08 | 1 | -1/+1 |
| | |||||
* | 39867, tweaked: Use cast to unsigned char to test character. | Peter Stephenson | 2016-11-08 | 1 | -1/+1 |
| | | | | | We want the unsigned variant to be <= 0x7f. Use the normal STOUC() macro and turn this into a single test. | ||||
* | 39825: optimise mb_metastrlenend() for 7-bit character. | Peter Stephenson | 2016-11-04 | 1 | -1/+16 |
| | | | | | | As the shell relies intimately on US-ASCII as a subset we can skip the multibyte functions if we are dealing with a complete 7-bit character. | ||||
* | 39470: failure to open a supposedly unique temp file name should result in ↵ | Barton E. Schaefer | 2016-09-29 | 1 | -0/+4 |
| | | | | | | an error Also band-aid for signal-related race conditions in temp file name generation | ||||
* | 39252: internal: quotestring: Drop the 'e' parameter, which no caller uses. | Daniel Shahaf | 2016-09-11 | 1 | -23/+4 |
| | |||||
* | 39087: fix 'conditionally uninitialized' variables | Jun-ichi Takimoto | 2016-08-23 | 1 | -1/+3 |
| | |||||
* | 39046 + 39061: New :P history modifier. | Daniel Shahaf | 2016-08-22 | 1 | -6/+8 |
| | |||||
* | 38971: Start using the new arrlen_ge() / arrlen_le() helpers. | Daniel Shahaf | 2016-08-01 | 1 | -1/+1 |
| | |||||
* | 38973: Optimize indexing array parameters. | Daniel Shahaf | 2016-08-01 | 1 | -0/+40 |
| | | | | | | | | | | | % () { for 1 in $prefix/zsh/bin/zsh Src/zsh; do $1 -f -c 'a=( {1..1000000} ); repeat 3 time ( repeat 300 : $a[1] )'; done } ( repeat 300; do; : $a[1]; done; ) 1.68s user 0.01s system 98% cpu 1.718 total ( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.710 total ( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.714 total ( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total ( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total ( repeat 300; do; : $a[1]; done; ) 0.01s user 0.01s system 69% cpu 0.023 total | ||||
* | 21603: Make read_poll more interruptible. | Peter Stephenson | 2016-06-02 | 1 | -1/+1 |
| | | | | | If we interrupted the first read we still did the fallback read. This is wrong. | ||||
* | 37946: make rm * warnings more informative. | Peter Stephenson | 2016-02-11 | 1 | -4/+27 |
| | | | | Now count files that would be deleted up to 100. | ||||
* | 37868: add 'static' to file local variables | Jun-ichi Takimoto | 2016-02-03 | 1 | -2/+2 |
| | |||||
* | 37780: Care printing error if nothing to print. | Kamil Dudka | 2016-01-25 | 1 | -3/+4 |
| | |||||
* | 37776: Set errflag before calls to zwarning(). | Peter Stephenson | 2016-01-25 | 1 | -2/+2 |
| | | | | This avoids an attempt to call zerr() or zerrnam() recusrively. | ||||
* | 37678: Now possible to quote "-" in pattern range | Peter Stephenson | 2016-01-19 | 1 | -1/+1 |
| | |||||
* | unposted: Extend docstring of callhookfunc(). | Daniel Shahaf | 2016-01-15 | 1 | -0/+3 |
| | |||||
* | 37348: Tests and fix for ${(q+)...}. | Peter Stephenson | 2015-12-08 | 1 | -1/+1 |
| | | | | Needs dupstring() for empty string case. | ||||
* | 37344: restore old printable quoting, add ${(q+)...}. | Peter Stephenson | 2015-12-07 | 1 | -46/+218 |
| | | | | | | The \C- form is only used inside quotedzputs(). ${(q+)...} outputs a quotedzputs() representation. | ||||
* | 37331: Use a single chracter to represent an MB_INCOMPLETE. | Peter Stephenson | 2015-12-07 | 1 | -6/+10 |
| | | | | | This is as it is likely to appear as a single character in output even if it has multiple octets. |