summary refs log tree commit diff
path: root/Src
Commit message (Collapse)AuthorAgeFilesLines
* 40654: exit cleanly from special POSIXBUILTINS in subshellsBarton E. Schaefer2017-03-041-0/+1
| | | | This patch overloads the zsh_subshell counter which is meant for $ZSH_SUBSHELL, but no one has suggested a working alternate test.
* 40170: Fix up error resetting in curses module.Sebastian Gniazdowski2017-03-031-23/+12
| | | | | Update comment to remove confusion. The comment was based on incorrecto expectations, and the problems referred to seem to be fixed.
* 40702: new KEYS_QUEUED_COUNT ZLE variablePeter Stephenson2017-03-031-0/+11
|
* 40681: strftime builtin should return 1 if ztrftime() returns -1Jun-ichi Takimoto2017-03-021-2/+6
|
* 40622 with typos fixed: functions -Ms.Peter Stephenson2017-03-012-13/+42
| | | | | | This adds the capability for mathematical functions based on shell functions to have a string argument. Module functions have had this for a long time.
* 40650: redo 40508 and 40626 with comments explaining what is actually going onBarton E. Schaefer2017-02-261-9/+25
|
* Revert 40626 which broke tests.Daniel Shahaf2017-02-261-2/+2
|
* 40640: the (A) parameter flag forces array result even if assignment syntax ↵Barton E. Schaefer2017-02-251-0/+11
| | | | is not used
* 40626: Make $options re-settable.Daniel Shahaf2017-02-251-2/+2
| | | | | | Follow-up to 40508. Reported-by: James McGlashan
* 40624: conditionally handle WIFCONTINUED to properly set SP_RUNNING process ↵Barton E. Schaefer2017-02-231-0/+5
| | | | status
* 40604: revert to the old method if getutent() is not availableJun-ichi Takimoto2017-02-231-4/+22
|
* 40598: paramsubst() should always return scalar when PREFORK_SINGLE was passedBarton E. Schaefer2017-02-201-1/+14
|
* 40593: SHWORDSPLIT + unset IFS should cause default splitting of $@Barton E. Schaefer2017-02-201-1/+2
|
* 40576 (tweaked): entersubsh(): unblock any signals that were blocked for ↵Barton E. Schaefer2017-02-201-3/+14
| | | | | | trap handling Also small improvement to loop that resets trap handlers
* 40558, 40562: General improvements to zsh/db/gdbm moduleSebastian Gniazdowski2017-02-172-72/+437
|
* 40524: do not free a null arrayBarton E. Schaefer2017-02-131-1/+2
|
* 40536: Prepend directory to $fpath.Peter Stephenson2017-02-132-0/+37
| | | | | | Used if parent function is autoloaded by absolute path so as to find functions in the same suite without shell code modification.
* 40508: Make $functions re-settable.Daniel Shahaf2017-02-081-2/+2
|
* 40507: Remove extraneous null creating GDBM recordsSebastian Gniazdowski2017-02-071-6/+6
|
* 40486: Don't warn on creation of MATCH etc. in regex.Peter Stephenson2017-02-022-9/+36
| | | | | This because they are created implicitly rather than by explicit user request, so the warning may not be useful.
* 40483 (cf. Eric Freese: 40482): Remove zpty exit hook from forked processesBarton E. Schaefer2017-02-011-0/+2
|
* 40460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing ↵Daniel Shahaf2017-02-011-6/+13
| | | | array
* 40469: change strategy from 40453 to use patcompile(PAT_HEAPDUP) instead of ↵Barton E. Schaefer2017-01-301-12/+2
| | | | signal queueing.
* 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵Barton E. Schaefer2017-01-2912-42/+120
| | | | not re-entrant.
* 40439: PAT_HEAPDUP definition just for clarityBarton E. Schaefer2017-01-281-0/+1
|
* 40440: Add $functions_source hash to zsh/parameter.Peter Stephenson2017-01-282-0/+105
| | | | This allows you to find out where a function was loaded from.
* 40425: HAVE_* tests for getutxent etc.Peter Stephenson2017-01-271-3/+6
| | | | | Not yet 100% clear where the #if's go, depends on how various systems implement the old or new formats.
* 40423: WARN_NESTED_VARS, conversion the other wayPeter Stephenson2017-01-261-8/+8
|
* 40422: More WARN_NESTED_VAR cases.Peter Stephenson2017-01-261-8/+9
| | | | | Converting type when using a calling scope was broken in the original patch.
* 40413: WARN_NESTED_VAR subscripted variable fix.Peter Stephenson2017-01-251-1/+5
| | | | | No warning needed on paramter that's created temporarily to help assignment.
* 40404: Only quote command in whence output with -v.Peter Stephenson2017-01-241-4/+8
|
* 40391: Add WARN_NESTED_VAR option and functions -W.Peter Stephenson2017-01-235-31/+71
| | | | | These are companions to WARN_CREATED_GLOBAL, warning when a variable from an enclosing scope is altered.
* 40375: autoload with explicit path mustn't trash already loaded function.Peter Stephenson2017-01-182-4/+29
| | | | | Also remove unnecessary dupstring() on already duplicated string when expanding =cmd.
* 40369: code should have been committed with 0a2d92f98Peter Stephenson2017-01-171-2/+2
|
* 40353 with tweaks to whence -v: extend directory cache use.Peter Stephenson2017-01-163-31/+85
| | | | | | Now used for all autoloaded functions after load, including those where the file was found along fpath, reducing duplication of directory names.
* 40362: Fix setting of parameter values in compvaluesPeter Stephenson2017-01-151-2/+2
|
* unposted: one missing *name = NULLPeter Stephenson2017-01-121-0/+1
|
* 40342: Add directory name cache for autoload file paths.Peter Stephenson2017-01-124-12/+155
| | | | | This renders "autoload /blah/blah/*" as efficient as use of fpath.
* 40335: More care with autoload function path.Peter Stephenson2017-01-123-6/+13
| | | | | | If doing "autoload -X", the path present might actually be location of file containing the function with the autoload -X. Add an explicit flag to say it's a directory for autoload.
* 40333: Fix the watch interface for utmpxJens Elkner2017-01-121-54/+42
|
* 40321: _arguments option groupsOliver Kiddle2017-01-111-71/+120
|
* unposted: more care with shell function filename.Peter Stephenson2017-01-112-1/+5
| | | | | | | When updating shfunc structure to change filename we should be careful to free whatever's there already, we may now be the directory in which to find the function definition. After loading the field contains the full name of the file.
* Add features associated with autoloading a function using an absolutePeter Stephenson2017-01-115-67/+187
| | | | | | | | | | | | | path. -d defaults to normal fpath -r remembers the path without actually loading. May be combined with -d. -R does the same but it's an error if not found -X can now take a directory path: this is used to output not yet loaded functions that have an associated path.
* 40305: fix some problems redisplaying command line after interrupt.Peter Stephenson2017-01-104-6/+27
| | | | | | | | | | | | Back off previous fix as this only covered some subset of problems. Remaining problems happend after reset-prompt in TRAPINT. One was in complist and is fixed by not attempting to list after an error or interrupt. The other was owing to not resetting clearflag when ZLE was re-entered.
* 40306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson2017-01-104-0/+43
| | | | | | | definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again.
* 40285: Be more careful with pattern allocation in history isearch.Peter Stephenson2017-01-061-4/+7
| | | | | | If there are ZLE hooks to be called, they may use patterns, in which case it's not safe to allocate the isearch pattern in the static buffer.
* 40270 (after 39995): Add cross-reference for robustness.Daniel Shahaf2017-01-051-0/+2
|
* 40269: handle option exclusion within current word for clumped optionsOliver Kiddle2017-01-051-13/+13
| | | | This replaces the change made in 13999 with an alternative approach.
* 40227: handle _arguments sets and rest arguments starting with a dashOliver Kiddle2017-01-041-11/+26
| | | | | This is a new approach to the problem first covered by 39611: checking to see if an option-like argument belongs to one of the other sets.
* 40226: tidy up some of the _arguments set codeOliver Kiddle2017-01-041-70/+29
| | | | | | Remove old code for applying explicit exclusions between sets which fixes some odd behaviour. Some struct members were unused. Also added some comments and test cases.