summaryrefslogtreecommitdiff
path: root/Src
AgeCommit message (Collapse)AuthorFilesLines
2023-08-2752053: whitelist capability CAP_WAKE_ALARMRobert Woods1-3/+3
Since the systemd update v254 from July 28, 2023, the capability 'CAP_WAKE_ALARM' is passed by default to some user process (especially desktop managers). Since 'CAP_WAKE_ALARM' is very narrow in focus, it is preferable that zsh does not consider it as a 'privileged' capability.
2023-08-22users/29175: Don't need to forget zle edits if noneNojus Gudinavičius1-0/+12
2023-08-0152008: Pattern bug with branches + exclusionPeter Stephenson1-2/+20
Add tests.
2023-07-2651945: assorted documentation improvements, bug fixes, and new testBart Schaefer2-13/+42
1) Document the behavior of "typeset -n existing_var" (via Jun T. comment) 2) Prohibit "typeset -nm pattern" because, well, it's insane. Add test. 3) Improve doc for ${(!)ref} including ${{t!)ref} (Jun T.) 4) Fix doc for how-to unset of a named ref (Jun T.) 5) Allow "typeset +r -n ref" and "typeset +r +n ref" (Jun T.) 6) Fix "typeset -r -n ref=param" to create readonly references 7) Avoid accidental removal of PM_UNSET flag (Jun T.) and update test 8) Fix "typeset -gn ref=value" and add a test for it 9) Add tests for read-only reference behavior 10) Fix infinite recursion when resolving scope of an unset local named reference, add test.
2023-07-2651969: read -d and -s should not reset terminal state when stdin is redirectedBart Schaefer1-3/+3
2023-07-2651950 (tweak per 51949): correct Thingy refcount in raw_getbyte()Bart Schaefer1-1/+2
2023-07-2051977: PIPEFAIL interaction with ERREXIT / ERRRETURNPeter Stephenson1-5/+11
Ensure the list-level error handling code is executed if we detect pipe failure for a foreground job. Add tests.
2023-07-0951890: fix "whence -wa" for multiple argumentsBart Schaefer1-0/+1
2023-06-2651889: fix module loading problem with full RELROJun-ichi Takimoto2-1/+25
If full RELRO (relocation read-only, one of the security enhancement methods for ELF-based systems) is used when building zsh (as in binary packages of most Linuxes), loading a module (e.g. zsh/zftp) fails unless all the modules it depends on are already loaded. With this patch the necessary modules are automatically loaded.
2023-06-2651884: reset IFS if it contains invalid charactersJun-ichi Takimoto2-16/+29
This happens only if MULTIBYTE option is on.
2023-06-2251887: namespaces recognized in math, incorrect usages rejected.Bart Schaefer2-4/+33
2023-06-2051877: do not build pcre module if pcre2-config is not foundJun-ichi Takimoto1-1/+1
2023-06-0851826: correctly read metafied null character from history fileJun-ichi Takimoto1-2/+8
2023-06-0651816: add :S history modifier with pattern matchPeter Stephenson2-8/+21
2023-05-2551739: detect invalid history word beginningPeter Stephenson1-1/+6
2023-05-2151769: fix compilation when HAVE_GETRUSAGE is not definedOliver Kiddle2-1/+3
Also silence compiler warning when HAVE_SETUPTERM is not defined.
2023-05-1351722: Safety for extracting elements of $historywordsPeter Stephenson1-2/+9
2023-05-1351738: support pcre's alternative DFA matching algorithmOliver Kiddle1-17/+36
2023-05-1351728: assign pcre named capture groups to a hashOliver Kiddle1-10/+33
2023-05-1351723: migrate pcre module to pcre2Oliver Kiddle1-136/+87
2023-05-11users/29070: clean up tokens in cmdstr before compctl completionBart Schaefer1-0/+2
2023-04-2251670: prevent possible underflow in gettext()Bart Schaefer1-1/+1
2023-04-1751652: fix running of TRAPEXIT explicitly.Peter Stephenson1-1/+33
This is a special case where TRAPEXIT is unset within a TRAPEXIT as it should never run in a nested context, so just save the function structure temporarily on the heap.
2023-04-1151639: new parameter ZSH_EXEPATH (full path of zsh executable)Jun-ichi Takimoto1-1/+116
The full pathname is obatined by a reliable method on macOS and systems that support procfs. But on other systems (FreeBSD, OpenBSD, ...) it is guessed from argv[0], PWD and PATH.
2023-04-0951631: initialize $_ by copying it from environmentJun-ichi Takimoto1-3/+6
2023-04-0951632: nmetafy $_ when exporting it to childJun-ichi Takimoto1-1/+1
2023-04-0351597: fix 'vared -c var' when var is unsetJun-ichi Takimoto1-1/+2
2023-03-3051604: %M in TIMEFMT should report in kilobytesJun-ichi Takimoto1-7/+7
2023-03-2951608: Don't execute commands after "continue &&"Peter Stephenson1-2/+2
Also ! continue ||
2023-03-2851602: Handle SIGIOT as an alias to SIGABRT if they are the same signal numberMikael Magnusson2-4/+10
2023-03-2258586: print "%s" with invalid multibyte characterPeter Stephenson1-13/+14
Treat each byte that is invalid or part of an incopmlete set as a single byte.
2023-03-1451573: additional "typset -p -m" fix for namespacesBart Schaefer1-3/+5
The "-m pattern" option is supposed to enable printing namespaces, but that didn't work when combined with -p. The -p option could also cause an unset parameter to become set if a named reference pointed at it.
2023-03-1151557: Clarify availability of ksh-mode parameters, improve vi-mode detection.Bart Schaefer1-2/+3
2023-03-0651510: Skip namespaces in "set"/"typeset" output, add tests, fix bugBart Schaefer4-8/+19
2023-03-0651509 (+ fix typo): Add ${(!)name} for the referred-to name of a named referenceBart Schaefer3-9/+37
Extend ${!name} in ksh emulation for same
2023-03-0651524: dependency on zsh/zle for linkageBart Schaefer1-0/+2
2023-03-0551485: module for several ksh93 features, mostly enabled only in ksh emulation.Bart Schaefer3-1/+274
2023-03-0551484: Extend named reference handling for special parameters, improve doc.Bart Schaefer1-44/+64
2023-03-0551483: Enable assignment and expansion of parameters with ksh-like namespace ↵Bart Schaefer8-19/+40
prefixes.
2023-03-05unposted: fix memory leak flagged by coverityBart Schaefer1-0/+1
2023-02-2851491: Check should use zlemetacs instead of zlecsMikael Magnusson1-1/+1
Coverity noticed that this first branch of the if statement has "meta" added to all the variable names except this zlecs at the end, so change it to match.
2023-02-2651460: avoid crash on bad parameter autofeatureBart Schaefer1-6/+11
2023-02-21Fix access to autoloaded parameter.Peter Stephenson1-1/+1
Namerefef resolution needs to happen on the parameter after autoload.
2023-02-2051431: "typeset -p" shouldn't change parameter flagsBart Schaefer1-13/+33
2023-02-1751447: silence compiler maybe-uninitialized warning by combining a couple of ↵Oliver Kiddle1-12/+13
variables
2023-02-1451437: Fix incorrectly-passed test case, masked by unrelated bug.Bart Schaefer1-2/+3
A bug with zmodload when unloading/reloading a static module caused the state of the shell options to change during K01 test. Worked around it. Also changed warnnestedvar messages to look more like other such.
2023-02-1451424: $(<...) shouldn't try to open a file with NO_EXECPeter Stephenson1-0/+3
2023-02-1351430: Misc. problems with typeset and $parametersBart Schaefer3-8/+12
* Fix and test for regression of assignment when using typeset command * Fix output of typeset +m and $parameters[ref] * Prevent segfault in typeset
2023-02-1251417: Check subscripts in named reference values more rigorously.Bart Schaefer1-1/+10
2023-02-1251402: Some ksh/bash features, additional sanity checkingBart Schaefer4-27/+124
* Add "unset -n" * Allow and enforce "typeset -n -r" for read-only references * "can't change type via subscript reference" error * Better checking for self-referential declarations/assignments * Ksh-style "foo=bar; typeset -n foo" creates foo=bar reference * Support "typeset -n ref; for ref in ..." * Subscripted references use NO_EXEC for safety * References assigned in called scopes reset scope at end * Allow named references to $! $? $$ $- $0 $_