summaryrefslogtreecommitdiff
path: root/Test
AgeCommit message (Collapse)AuthorFilesLines
2024-02-18Merge branch 'master' of git://git.code.sf.net/p/zsh/codeBart Schaefer1-2/+14
2024-02-1852556: regression test for unset referent (left out of last commit)Bart Schaefer1-0/+11
2024-02-1852515: (+ tests in 52527) avoid sh errors when running shebang-less scripts ↵Stephane Chazelas1-2/+14
with paths starting with - or +
2024-02-1552520: add new features and improvements to the "incarg" ZLE widgetmidchildan1-0/+360
- Decrement integers without defining a new widget - Preserve the number of leading zeros - Increment binaries, octals, and hexadecimals - Move the cursor to the end of the incremented integer - Create a sequence of integers across terminal panes - Add a Vim variant - Also add tests
2024-02-0352513: fixes and doc for using nofork substitutions with private parametersBart Schaefer1-7/+111
Also fixes a crash bug with {fd}>&N redirections and private parameters
2024-01-2652405, 52502: add empty elements to $match for optional captures that don't ↵Oliver Kiddle1-0/+5
match
2024-01-2552385: avoid "tr" in test output formattingBart Schaefer1-2/+3
2023-12-1352393: fix tests on Solaris by omitting -a option to diff as it is not ↵Oliver Kiddle1-1/+3
supported there
2023-12-0252360: simplify and improve bad-descriptor detection in %prep sectionBart Schaefer1-3/+2
2023-11-2352325: Clarify doc for edge cases of named references and nofork substitutionBart Schaefer1-1/+1
Unposted whitespace change avoids a parse error in ${ ... } with comments.
2023-11-1552202: improve handling of quoting in ${var/pattern/replacement}Bart Schaefer1-4/+4
2023-09-2752188: skip tests that fail if multibyte is not availableJun-ichi Takimoto1-6/+14
2023-09-16users/29160, workers/52156: Fix repetition of substitution modifier.Bart Schaefer1-0/+2
2023-09-1652155: Test file missed out from previous commitBart Schaefer1-0/+448
2023-09-1352122 + 52129: fix (#) parameter expansion flagJun-ichi Takimoto1-0/+40
Without the X flag, null string "" is substituted for bad math expression.
2023-09-0552115: permit repeated "private" declarations as long as types aren't changedBart Schaefer1-0/+17
2023-09-03users/29220: fix bug with assignment to private following explicit unsetBart Schaefer1-0/+7
2023-08-0152008: Pattern bug with branches + exclusionPeter Stephenson1-0/+26
Add tests.
2023-07-2651945: assorted documentation improvements, bug fixes, and new testBart Schaefer1-1/+69
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-2051977: PIPEFAIL interaction with ERREXIT / ERRRETURNPeter Stephenson1-0/+58
Ensure the list-level error handling code is executed if we detect pipe failure for a foreground job. Add tests.
2023-06-2651884: reset IFS if it contains invalid charactersJun-ichi Takimoto1-0/+21
This happens only if MULTIBYTE option is on.
2023-06-2251887: namespaces recognized in math, incorrect usages rejected.Bart Schaefer1-2/+50
2023-06-2251860: simplify suffix handling in _prefix to remove less accurate hackMarlon Richert2-1/+55
This solves the following problems in the _prefix completer: - The old code had logic for dealing with compstate[unambiguous] that was unnecessary. It works fine without it. - Because of this logic, if a widget set compstate[insert]=1 after calling _main_complete, an `x` was left after the completion on the command line. - If the same widget also set `compstate[to_end]=`, then instead, the last character of the inserted completion would be treated as an autoremovable suffix, with the actual suffix being inserted to the line as a normal character. - After inserting a completion, the cursor would move to the end of the entire current word on the command, not the end of word that was inserted. This is not what you want with _prefix, since you are trying to complete a word _before_ the one on the command line, after which you usually want to insert a separator, such as a space or slash, before the next word.
2023-06-0651816: add :S history modifier with pattern matchPeter Stephenson1-0/+10
2023-06-0651779: update completion test for 51761Marlon Richert1-5/+5
2023-05-2151348: Fix subscript completion bugs inside ~[...]Marlon Richert1-3/+13
When completing inside ~[...] (_with_ the trailing `]` present), the following bugs occured: - Subscript completion was skipped entirely when there were one or more slashes ('/') in the subscript, which is incorrect, since slashes are allowed there. - Instead of going through _complete, $_comps[-subscript-] was called immediately, causing _setup to be skipped. - If succesful, _main_complete was exited right after, causing menu-style, comppostfuncs and other essential completion features to be skipped.
2023-05-2151758: Make dynamic dir completion easier to implementMarlon Richert1-0/+11
2023-05-1351738: support pcre's alternative DFA matching algorithmOliver Kiddle1-0/+5
2023-05-1351728: assign pcre named capture groups to a hashOliver Kiddle1-0/+14
2023-05-1351723: migrate pcre module to pcre2Oliver Kiddle1-2/+11
2023-05-0851692: not skip tests for [[ -r/-N file ]] on CygwinJun-ichi Takimoto1-7/+1
2023-04-1751652: fix running of TRAPEXIT explicitly.Peter Stephenson1-0/+11
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-03-2951608: Don't execute commands after "continue &&"Peter Stephenson1-0/+36
Also ! continue ||
2023-03-0651510: Skip namespaces in "set"/"typeset" output, add tests, fix bugBart Schaefer1-0/+106
2023-02-1451437: Fix incorrectly-passed test case, masked by unrelated bug.Bart Schaefer1-2/+21
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 Schaefer1-0/+14
* 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-2/+2
2023-02-1251403: Tests and documentation for 51402, clean up some other tests.Bart Schaefer1-9/+161
2023-02-1251374: Expose named references in $parameters, fix substitution error.Bart Schaefer2-16/+90
2023-02-1251361: Tests for 51360.Bart Schaefer2-0/+517
2023-02-0951320, 51383: fixes to prevent later reappearance of old attributesOliver Kiddle2-2/+2
Also associated test updates and a test fix for TERM=dumb.
2023-02-0651350: ${(S)...//#%...} didn't match the whole stringPeter Stephenson1-0/+7
2023-02-0251306: error message in ${unset?error} should be expandedPeter Stephenson1-0/+5
2023-02-0251307: Improve error on attempt to define function from aliased namePeter Stephenson1-1/+6
2023-01-27unposted (cribbed from users/28784 by Roman): Add XFail tests for ↵Daniel Shahaf1-0/+15
substituting a single-quoting backslash.
2023-01-1651278: make (i) subscript flag for zero-length string consistentPeter Stephenson1-0/+9
2023-01-1151297: update expected test results to match more optimised escape sequences ↵Oliver Kiddle1-8/+8
with recent changes
2023-01-1051258, 51272: refactor handling of terminal attributes, removing OFF flags ↵Oliver Kiddle2-7/+20
in zattr
2022-12-1751214: handle read -d and a delimiter that can't be decoded into a characterOliver Kiddle2-0/+18
Terminate input at the raw byte value of the delimiter. Also document and test the use of an empty string as a way to specify NUL as the delimiter.