Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | 37326: comment only: multibyte string lenght/width counting | Peter Stephenson | 2015-12-06 | 1 | -0/+11 |
| | |||||
* | 37314: upgrade quotedzputs() for non-printable output. | Peter Stephenson | 2015-12-06 | 1 | -27/+144 |
| | | | | | Use nicechar with $'..' quoting; upgrade nicechar() etc. to use suitable output. | ||||
* | 37296: Avoid needless calloc(). | Daniel Shahaf | 2015-12-03 | 1 | -11/+13 |
| | |||||
* | 37191: fix strftime() expansion issue with %p and %P. | Peter Stephenson | 2015-11-22 | 1 | -4/+11 |
| | | | | | In some locales the output from this can validly be empty, so we need to treat them specially. | ||||
* | unposted: small typo again | Peter Stephenson | 2015-10-24 | 1 | -1/+1 |
| | |||||
* | unposted: small typo | Peter Stephenson | 2015-10-24 | 1 | -1/+1 |
| | |||||
* | 36944: extend fd management to zsocket | Peter Stephenson | 2015-10-24 | 1 | -10/+15 |
| | |||||
* | 36941: Mark file descripors in ztcp as used. | Peter Stephenson | 2015-10-24 | 1 | -0/+26 |
| | | | | | Allow such file descriptors to be either internal and closed on exec or external and so managed explicitly by module. | ||||
* | 36773: limit CORRECT / CORRECT_ALL to directory names in cases where it is ↵ | Barton E. Schaefer | 2015-10-04 | 1 | -19/+30 |
| | | | | obvious that a directory is expected | ||||
* | 36562: sanitize $PWD on import, per POSIX | Barton E. Schaefer | 2015-09-19 | 1 | -3/+17 |
| | |||||
* | cf. 36554: remove unnecessary pointer dereference | Barton E. Schaefer | 2015-09-19 | 1 | -1/+1 |
| | |||||
* | 36552 plus test: fix Nularg string in quotestring(QT_DOLLARS) | Barton E. Schaefer | 2015-09-17 | 1 | -0/+6 |
| | |||||
* | 36380: Avoid gcc case syntax | Mikael Magnusson | 2015-09-01 | 1 | -1/+2 |
| | |||||
* | 36376: handle signals during read1char() so it is possible to interrupt ↵ | Barton E. Schaefer | 2015-09-01 | 1 | -1/+6 |
| | | | | correct/correctall prompts | ||||
* | 36262: Replace fix for missing unmeta in chdir(). | Peter Stephenson | 2015-08-21 | 1 | -4/+9 |
| | | | | | | | It was needed in the argument to one of a pair of lchdir()s rather than within zchdir(). Add tests for the case of a character with 0x83 within it. | ||||
* | 36227: attempt to fix metafication problem with ztrftime. | Peter Stephenson | 2015-08-18 | 1 | -3/+27 |
| | | | | | fmt is treated as metafied on entry; use returned length to ensure we metafy or output the correct length if there are embedded nulls. | ||||
* | 35928: '%-m' should work even if not supported by strftime(3) | Jun-ichi Takimoto | 2015-08-08 | 1 | -1/+1 |
| | | | | Also clarify document. | ||||
* | 35809: fix $((...)) completion by _expand widget. | Peter Stephenson | 2015-07-25 | 1 | -1/+19 |
| | | | | | This changes internal quoting of the form still including tokens not to add unnecessary internal backslashes. | ||||
* | 35872: protect against NULL pointers in unmeta | Peter Stephenson | 2015-07-23 | 1 | -1/+4 |
| | |||||
* | 35826: add getsparam_u() to return unmetafied string, use it for a number of ↵ | Barton E. Schaefer | 2015-07-22 | 1 | -3/+7 |
| | | | | references to non-special params | ||||
* | 35745: ztrftime: Pass everything unhandled to the system strftime() | Mikael Magnusson | 2015-07-09 | 1 | -25/+54 |
| | |||||
* | Add non-metafied character length handling. | Peter Stephenson | 2015-06-12 | 1 | -6/+83 |
| | | | | | | | Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters. | ||||
* | 35386: expand tabs where useful in builtins outputing function. | Peter Stephenson | 2015-06-05 | 1 | -4/+39 |
| | | | | | | Also add to zed -f. Option is -x <numm>. | ||||
* | 35353: print -x and print -X expand tabs | Peter Stephenson | 2015-06-02 | 1 | -0/+102 |
| | |||||
* | 35067: Add (b) parameter flag for pattern char backslashing. | Peter Stephenson | 2015-05-10 | 1 | -4/+19 |
| | | | | | | Doc tweak from Daniel in 35071. Includes test. | ||||
* | 35064: rename ISPRINT to ZISPRINT to avoid conflict | Jun-ichi Takimoto | 2015-05-09 | 1 | -2/+2 |
| | |||||
* | 34636: replace broken isprint() on Mac OS X | Jun-ichi Takimoto | 2015-03-05 | 1 | -2/+2 |
| | |||||
* | 34587: ensure multibyte characters don't overflow. | Peter Stephenson | 2015-02-20 | 1 | -0/+8 |
| | | | | | | They could start incorporating tokens, with bad karma. Add test. | ||||
* | 34466: Fix double unmeta in rm verification | Mikael Magnusson | 2015-02-09 | 1 | -1/+1 |
| | |||||
* | 34403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTY | Barton E. Schaefer | 2015-01-26 | 1 | -2/+2 |
| |