about summary refs log tree commit diff
path: root/Src/builtin.c
Commit message (Collapse)AuthorAgeFilesLines
* users/26509: fix for r -LPeter Stephenson2021-02-181-2/+3
| | | | | fc with the -L option should ignore remote entires, rather than reading them and treating them as an error.
* 48073: Add fc -s as POSIX way of rerunning command without starting editorMartijn Dekker2021-02-171-2/+2
|
* 47895: Remove trailing spaces from "print -ac" output lines.Bart Schaefer2021-02-041-1/+1
|
* 47301: Fix print -v metaficationJun-ichi Takimoto2020-10-251-1/+1
|
* 46168: Update $PWD and call chpwd hook after normalizing pathMatthew Martin2020-07-031-18/+17
|
* typeset: Fix leaving corrupted entries in paramtabMikael Magnusson2020-06-051-3/+9
|
* 45729: internal: Add a second parameter to zlinklist2array(), analogously to ↵Daniel Shahaf2020-05-031-5/+5
| | | | | | hlinklist2array(). Will be used in the next commit.
* 45660: Fix crash setting vi or emacs mode on command line.Peter Stephenson2020-04-091-1/+1
| | | | Delay setting the option until the module system is set up.
* 45487: Missing mod_export declarations for AIXPeter Stephenson2020-02-241-1/+1
|
* 45302: bin_umask(): Queue signals around umask().Daniel Shahaf2020-01-151-1/+4
| | | | | Otherwise, a signal handler might create files while the temporary umask is in effect.
* 45066: internal: Document forklevel, locallevel, and exit_pending.Daniel Shahaf2019-12-181-1/+5
|
* 45058: internal: Add symbolic names to possible values of zexit()'s ↵Daniel Shahaf2019-12-171-11/+13
| | | | "from_where" parameter. No functional change.
* unposted: Update comment to reflect variable rename in 41012 (= ↵Daniel Shahaf2019-12-171-1/+1
| | | | zsh-5.3.1-182-gd7110d8f0).
* 45009: POSIX_CD needs to suppress some forms of option.Peter Stephenson2019-12-121-1/+1
| | | | | Otherwise forms of argument allowed by POSIX are interpreted as options instead.
* 45004: Fix typos in commentsMartijn Dekker2019-12-111-2/+2
|
* unposted: functions -c: Fix typoDaniel Shahaf2019-10-101-1/+1
|
* Copy functions using functions -c old new.Peter Stephenson2019-08-031-2/+41
| | | | Documentation and test.
* 44502: Quote function name for "autoload -X"Bart Schaefer2019-07-081-1/+1
|
* 44469: correct error on missing option argumentMartijn Dekker2019-07-011-5/+12
|
* 44443: POSIX allows exporting readonly variablesMartijn Dekker2019-06-231-1/+1
|
* 44284: combination of -T and -p to typeset crashed the shell.Oliver Kiddle2019-05-141-4/+2
|
* 44291: printf with argument specifier out of range for an int crashed the shellOliver Kiddle2019-05-141-2/+1
|
* 44198: Add cd_silent option to suppress all cd outputdana2019-04-121-2/+2
|
* 43669: ensure explicit exit status is used over implicitPeter Stephenson2018-10-101-2/+2
|
* 43660: extend 43653 when final exit is implicit.Peter Stephenson2018-10-091-2/+38
| | | | | | | Combine logic for case after committed to exit (shell_exiting) with case where exit occurred in a function we nee to unwind (exit_pending). Add sarky note for future generations to be confused at.
* 43656: special tied arrays don't have tieddataPeter Stephenson2018-10-091-1/+1
|
* 43653: explicit exit from EXIT trap overrides exit statusPeter Stephenson2018-10-091-4/+10
|
* 43616: Various parameter setting and display fixes.Peter Stephenson2018-10-081-43/+112
| | | | | | Mostly to do with typeset -p and tied variables and their interaction. Some general tied variable fixes.
* GitHub #28: Add missing math.h include for builtinsJörg Thalheim2018-09-101-0/+2
| | | | math.h is required for isnan/isinf
* 43077: Fix shift builtin status.Peter Stephenson2018-06-201-1/+6
| | | | | If the math evaulation to get the shift count failed the status wasn't passed back from the builtin.
* 42785: Allow redefining math function to work silently.Peter Stephenson2018-05-171-9/+4
| | | | | | Previously it failed with an error message that the function was already defined. This is inconsistent with most other aspects of shell usage.
* 42488: test cases for 42369 and address some issues in the codeOliver Kiddle2018-05-131-2/+8
|
* 42601: tidy up code for set -A/+A to not increment a NULL pointer and to be ↵Oliver Kiddle2018-04-071-6/+4
| | | | more efficient
* 42332: Special case unsigned printf formats.Peter Stephenson2018-01-311-1/+4
| | | | | 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 groupiesPeter Stephenson2017-12-221-1/+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.
* 42063: getopts errors now report "+" in front of option where appropriatedana2017-12-011-2/+3
|
* 41866: No error unsetting nonexistent function for POSIXBUILTINSMartijn Dekker2017-11-021-1/+5
|
* Add typeset -p1, like typeset -p with newlinesPeter Stephenson2017-10-011-7/+20
|
* First go at var=([key]=value) syntax.Peter Stephenson2017-09-131-22/+48
| | | | | | | 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.
* 41668: New --emulate option on invocation.Peter Stephenson2017-09-111-1/+1
| | | | | | | | 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.
* 41284: Fix NULL dereference in cd.Peter Stephenson2017-06-131-1/+10
| | | | | This happened in sh compatiblity mode if HOME was not set and cd was used with no argument.
* 41244: Add zmodload -s option.Peter Stephenson2017-06-121-1/+1
| | | | | | | | Doesn't complain if module is unavailable, but prints more obscure errors. Use existing low-level silent flag by passing through intermediate module loading hierarchy.
* 41012: Fix premature exit from nested function in EXIT trap.Peter Stephenson2017-04-271-7/+16
| | | | | | Also add check so we don't delay an exit if we were already in an EXIT trap for the main shell, as we should in that case leave immediately.
* 40622 with typos fixed: functions -Ms.Peter Stephenson2017-03-011-3/+20
| | | | | | 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.
* 40536: Prepend directory to $fpath.Peter Stephenson2017-02-131-0/+36
| | | | | | Used if parent function is autoloaded by absolute path so as to find functions in the same suite without shell code modification.
* 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵Barton E. Schaefer2017-01-291-17/+20
| | | | not re-entrant.
* 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-231-4/+8
| | | | | 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-181-0/+25
| | | | | Also remove unnecessary dupstring() on already duplicated string when expanding =cmd.
* 40369: code should have been committed with 0a2d92f98Peter Stephenson2017-01-171-2/+2
|