Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 41802 (minor tweaks): use heap during shell function call. | Peter Stephenson | 2017-10-04 | 2 | -70/+87 |
| | | | | | | Replaces stack for more efficient memory management. Also fix debug message when FUNCNEST is increased. | ||||
* | 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth. | Peter Stephenson | 2017-10-02 | 2 | -11/+20 |
| | | | | Initialised from existing configuration value. | ||||
* | Add typeset -p1, like typeset -p with newlines | Peter Stephenson | 2017-10-01 | 4 | -28/+67 |
| | |||||
* | 41789: Don't save fd if -1. | Peter Stephenson | 2017-09-29 | 1 | -8/+11 |
| | | | | | | We try to move an fd which isn't opend but it will feel. This needs handling specially in the new code for marking saved fd's. | ||||
* | 41772: fix bug in handling of long options with _arguments' -A option | Oliver Kiddle | 2017-09-28 | 1 | -1/+1 |
| | |||||
* | 41767: preserve nonzero exit status on interrupt | Barton E. Schaefer | 2017-09-27 | 1 | -1/+2 |
| | |||||
* | 41764 (test tweaked): allow [key]+=value when modifying arrays | Peter Stephenson | 2017-09-27 | 3 | -12/+48 |
| | |||||
* | 41761: Ensure status from interrupt is propagated by builtin | Peter Stephenson | 2017-09-26 | 1 | -2/+9 |
| | |||||
* | 41747: Don't create hash entry if just checking existence. | Peter Stephenson | 2017-09-25 | 4 | -9/+18 |
| | | | | Pass a flag in indicating this case. | ||||
* | Updates for ksh array element syntax. | Peter Stephenson | 2017-09-24 | 5 | -147/+224 |
| | | | | | | | | Move detection of key/value pairs down into prefork(). Detect normal array assignment and [key]=val array assignemnt separately. Mark key / value pairs with Marker and pass up flag. Deal with marked triads specially later on. | ||||
* | 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 |
| | |||||
* | 41736: NO_INTERACTIVE_COMMENTS in $(...) | Barton E. Schaefer | 2017-09-20 | 1 | -1/+6 |
| | |||||
* | 41723: one more case of 41627 in "while" loops. | Barton E. Schaefer | 2017-09-18 | 1 | -1/+1 |
| | |||||
* | More [key]=value tweaks | Peter Stephenson | 2017-09-14 | 1 | -3/+5 |
| | | | | | | Some rephrasings. Update typeset -p for associative arrays to use new syntax. | ||||
* | First go at var=([key]=value) syntax. | Peter Stephenson | 2017-09-13 | 4 | -33/+206 |
| | | | | | | | Works for both normal and typeset case, also var+=... Still to do: allow to be mixed with straight array assignment, improve typeset -p, implement [key]+=value. | ||||
* | 41688: builtin wait for all jobs should ignore STAT_NOPRINT | Peter Stephenson | 2017-09-13 | 1 | -1/+2 |
| | |||||
* | unposted: internal: Document zreaddir(). | Daniel Shahaf | 2017-09-11 | 1 | -0/+10 |
| | |||||
* | 41666: zpty compatibility for OpenBSD | Thierry Ghelew | 2017-09-11 | 1 | -1/+6 |
| | |||||
* | 41668: New --emulate option on invocation. | Peter Stephenson | 2017-09-11 | 3 | -35/+107 |
| | | | | | | | | This sets the shell emulation mode similarly to ARGV0=... which doesn't work from other shells. Note that this gives more comprehensive emulation than running emulate within the shell. | ||||
* | 41662: exec -a arguments weren't sanitised | Peter Stephenson | 2017-09-10 | 1 | -0/+3 |
| | |||||
* | 41661: Need to remove tokens before using bufferwords() for (z) | Peter Stephenson | 2017-09-10 | 1 | -2/+6 |
| | |||||
* | 41641: Some math operations shouldn't be lvalues. | Peter Stephenson | 2017-09-05 | 1 | -8/+2 |
| | | | | | This includes pre- and post- increment and decrement. Simply mark all values after operations as rvalues. | ||||
* | 41633: Fix problem backgrounding function definitions. | Peter Stephenson | 2017-09-04 | 1 | -1/+6 |
| | | | | | Owing to being marked as simple sublists the instruction to background was ignored. This applied to anonymous functions. | ||||
* | Fix problem with ERR_RETURN. | Peter Stephenson | 2017-08-31 | 1 | -4/+3 |
| | | | | | | | It wasn't suppressed properly in the code following an if in some circumstances, in particular in initialsation scripts and also in a nested function where the caller had suppressed it. | ||||
* | 41608 (plus tests): restore ERR_EXIT before function. | Peter Stephenson | 2017-08-29 | 1 | -1/+1 |
| | | | | | | | There was an exception to the usual ERR_EXIT pattern that causes problems when executing a function in an else branch. It seems the exception is no longer needed as the regression tests pass without it. | ||||
* | 41590 modified as 41595: make ERR_RETURN more logical. | Peter Stephenson | 2017-08-24 | 5 | -19/+48 |
| | | | | | | | | It now operates separately at each function depth. To keep ERR_EXIT global, make the noerrexit variable usd bit flags. Extend tests. | ||||
* | posted but has not shown up: fix fd problem in subshell. | Peter Stephenson | 2017-08-15 | 2 | -3/+27 |
| | | | | | Record fd's that have been saved in fdtable and if the shell forks close them as they will never be restored. | ||||
* | 41542: Fix pcre logic for extracting matched parentheses. | Peter Stephenson | 2017-08-14 | 1 | -25/+43 |
| | | | | | | | | | | When we went off the end of the array but measured the length implicitly, we got lucky before. After 41308 we were looking up lengths in stale memory. Rename some variables, clean up the logic, be easier to understand. Add tests. | ||||
* | 41527 (tweaked for heap memory): fix [[ -<cond> ]] from modules | Phil Pennock | 2017-08-11 | 1 | -2/+13 |
| | |||||
* | 41504: make empty strings work in case patterns with no leading parenthesis | Peter Stephenson | 2017-08-09 | 2 | -13/+41 |
| | |||||
* | 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 |
| | |||||
* | 41464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands. | Peter Stephenson | 2017-07-27 | 1 | -2/+12 |
| | | | | Document the default behaviour and add a test. | ||||
* | 41420: "{.." wasn't check for brace expansion properly | Peter Stephenson | 2017-07-13 | 1 | -0/+2 |
| | |||||
* | 41402: Delay has_tokens() in ecstrcode as may not be needed | Sebastian Gniazdowski | 2017-07-09 | 1 | -1/+5 |
| | |||||
* | 41402: Add hasher to ecstrcode to reduce string comparisons | Sebastian Gniazdowski | 2017-07-09 | 2 | -1/+6 |
| | |||||
* | Delay processing "disown" for superjob. | Peter Stephenson | 2017-07-04 | 2 | -0/+9 |
| | | | | | | | This is a job forked from the current shell when a job partly running from the current shell was suspended. When all associated processes started from the main shell are finished the job is continued and at this point the disown can complete. | ||||
* | Avoid invalid access with isearch in completion list | Maxime de Roucy | 2017-07-04 | 1 | -5/+7 |
| | |||||
* | 41375: GDBM interface bug fixes | Sebastian Gniazdowski | 2017-07-03 | 1 | -63/+93 |
| | |||||
* | 41386: when backgrounding a STAT_CURSH job, remove the flag. | Peter Stephenson | 2017-07-02 | 1 | -1/+3 |
| | | | | | This typical applies to a STAT_SUPERJOB. It prevents it from getting copied interrupts as a foreground process. | ||||
* | 22760: fix partial string length reports with NO_MULTIBYTE | Peter Stephenson | 2017-07-02 | 1 | -1/+1 |
| | |||||
* | 41368: Add missing unqueue_signals() to compctl. | Peter Stephenson | 2017-06-27 | 1 | -0/+2 |
| | |||||
* | 41308 (tweaked): behaviour of PCRE with NUL bytes | Phil Pennock | 2017-06-22 | 1 | -11/+26 |
| | |||||
* | 41319: dupstring a possibly readonly string before modifying | Mikael Magnusson | 2017-06-19 | 1 | -1/+1 |
| | |||||
* | 41322: reduce number of changes in signal queuing/blocking state during ↵ | Barton E. Schaefer | 2017-06-19 | 1 | -3/+5 |
| | | | | shingetline() to improve read speed | ||||
* | 41317: use heap allocation in getoutputfile() to plug memory leak | Barton E. Schaefer | 2017-06-19 | 1 | -2/+2 |
| | | | | Heap is usable ever since addfilelist() of workers/31528 (commit 3c573222). | ||||
* | 41242: zstrbcmp(...) removed in favor of zstrcmp(..., ↵ | Barton E. Schaefer | 2017-06-17 | 2 | -48/+3 |
| | | | | | | SORTIT_IGNORING_BACKSLASHES) This should make sorting consistent in completion listings vs. elsewhere. | ||||
* | 41275: Leave stdin open when executing widgets | Stephane Chazelas | 2017-06-13 | 1 | -0/+7 |
| |