summaryrefslogtreecommitdiff
path: root/Src/params.c
AgeCommit message (Collapse)AuthorFilesLines
2016-09-1639332: support ksh's [[ -v varname ]] condition for checking if variables ↵Oliver Kiddle1-0/+30
are set
2016-08-2239046 + 39061: New :P history modifier.Daniel Shahaf1-1/+1
2016-08-0138971: Start using the new arrlen_ge() / arrlen_le() helpers.Daniel Shahaf1-2/+2
2016-08-0138973: Optimize indexing array parameters.Daniel Shahaf1-1/+1
% () { 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
2016-06-2138692: IFS can't be changed in restricted modePeter Stephenson1-1/+1
2016-06-04unposted (cf. 38612): remove overeager DPUTS()Barton E. Schaefer1-1/+0
2016-03-0638086: shuffle init code to localize a global, add $ZSH_ARGZERO, refine ↵Greg Klanderman1-4/+2
$ZSH_SCRIPT (also a couple of ChangeLog typos corrected -- Bart)
2016-02-2638020: fix problems with $SECONDS.Stephane Chazelas1-3/+3
Fractions of a second were not handled correctly.
2016-02-1737988: $0 becomes read-only under POSIXARGZEROBarton E. Schaefer1-1/+3
2016-02-0737895: $ZSH_SCRIPT is POSIX $0 but always availblePeter Stephenson1-0/+1
2016-02-0337868: add 'static' to file local variablesJun-ichi Takimoto1-1/+1
2016-01-2637785: skip autoload parameters for "typeset -p"Barton E. Schaefer1-1/+2
2016-01-1537512: overeager WARN_CREATE_GLOBAL with strftimePeter Stephenson1-14/+2
2016-01-0337489, tweaked: with POSIX_IDENTIFIERS create math var as scalarPeter Stephenson1-0/+1
2015-12-0437305: typeset -p can now output arrays on one linePeter Stephenson1-26/+0
2015-12-0437202: suppress WARN_CREATE_GLOBAL warnings after a forkPeter Stephenson1-5/+6
2015-12-0337253: Constify two local variables.Daniel Shahaf1-4/+6
2015-11-3037254: No functional change: change code layout in preparation for 37253.Daniel Shahaf1-6/+6
2015-11-3037250: No functional change: rename local variables.Daniel Shahaf1-10/+13
2015-11-2337208: check for restricted parameter before changing from unset to setBarton E. Schaefer1-8/+22
Also, return NULL from setnparam() on failure to retrieve value (avoids null-pointer dereference); add some expository comments
2015-11-2337203: WARN_CREATE_GLOBAL test in wrong place for associative arrayPeter Stephenson1-2/+4
2015-11-2037168: No WARN_CREATE_GLOBAL on special parametersPeter Stephenson1-1/+1
2015-11-0837080: use paramtab abstraction more consistently, add explanatory commentsBarton E. Schaefer1-2/+4
2015-10-30unposted (after 37018): Fix typo in error message.Daniel Shahaf1-1/+1
2015-10-2937018: Make WARNCREATEGLOBAL more consistent.Peter Stephenson1-13/+39
Wd don't need separate math handling any more, and can make it output the function name in all cases.
2015-10-2937014: Improved internal parameter setting.Peter Stephenson1-2/+51
Enhance WARNCREATEGLOBAL to work in many more cases. Don't create REPLY as an integer if it didn't previously exist as one, even if the value to be set is integral, as this is likely to mess up later uses of REPLY.
2015-10-0636780: Fix crash in ksh mode with -n and $HOME.Peter Stephenson1-6/+7
If home variable is NULL ensure HOME is unset.
2015-09-0136347: Fix appending empty array to associationsMikael Magnusson1-3/+6
2015-07-2235826: add getsparam_u() to return unmetafied string, use it for a number of ↵Barton E. Schaefer1-7/+16
references to non-special params
2015-07-2235581, 35582: output array assignments with spaces inside the parensBarton E. Schaefer1-3/+9
2015-07-1535799: with NO_EXEC, parse parameter subscript expressionsBarton E. Schaefer1-7/+15
2015-06-1735476: Allow setting $0 when POSIX_ARGZERO is not setMikael Magnusson1-1/+16
2015-05-2035231: make mkevnstr() safe for NULL valueBarton E. Schaefer1-5/+9
2015-05-0835059: fix, document, test readonly -p.Peter Stephenson1-70/+108
Don't output specials as can't be reconstructed. Output arrays in a useful order.
2015-05-0735054: readonly -p + POSIXBUILTINS fix.Peter Stephenson1-2/+13
Now displays unset variables marekd readonly
2015-04-2934992: POSIX fix for readonly variables.Peter Stephenson1-1/+5
With POSIXBUILTINS, variables can be marked readonly if unset. Also, variables can't have the readonly flag removed.
2015-01-2934430: parameter fixes for gdbm tied hash.Peter Stephenson1-2/+25
Probably fix the issue with correct parameter hiding or not hiding. A little extra safety checking. Possibly fixed a memory leak with untying.
2015-01-1834322: bug with interface to parsestr() etc.Peter Stephenson1-1/+2
Was showing up in places like ${(e)...} where command substitution could reallocate the token string, but actually there was never any guarantee that the lexer wouldn't do that, so this was always a bit iffy.
2014-12-1934015: disallow strange environment variable names.Peter Stephenson1-16/+23
These are ones with the top bit set in any character. Don't import them, and don't export them.
2014-12-1834008: metafy the environment on arrival in the shellPeter Stephenson1-1/+1
2014-12-1834006: unmetafy anything put into the environmentPeter Stephenson1-1/+11
2014-12-1133876: etc.: Separate errors and keyboards interruptsPeter Stephenson1-6/+7
Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles.
2014-09-2933276: safer import of numerical variables from environmentPeter Stephenson1-8/+31
2014-06-0132634: add POSIX_ARGZERO optionBarton E. Schaefer1-1/+15
2014-05-29unposted: use DIGBUFSIZE for pipestatus numeric bufferPeter Stephenson1-1/+1
2014-02-0232337: change initialization of some special parameters for emulation ↵Barton E. Schaefer1-8/+9
compatibility
2014-01-2332299: add use of underscores on arithmetic output for spacingPeter Stephenson1-4/+147
2013-12-3032208: always reset pathchecked when the path array is modifiedBarton E. Schaefer1-2/+6
2013-12-1832157: fix extra line feed after prompt, and erased character in completion ↵Barton E. Schaefer1-0/+3
listing, when ZLE_RPROMPT_INDENT=0
2013-09-2631772: queue_signals() to prevent re-entry into endparamscope().Barton E. Schaefer1-0/+2