summaryrefslogtreecommitdiff
path: root/Test
AgeCommit message (Collapse)AuthorFilesLines
2017-08-31Fix problem with ERR_RETURN.Peter Stephenson1-0/+34
It wasn't suppressed properly in the code following an if in some circumstances, in particular in initialsation scripts and also in a nested function where the caller had suppressed it.
2017-08-2941608 (plus tests): restore ERR_EXIT before function.Peter Stephenson1-0/+35
There was an exception to the usual ERR_EXIT pattern that causes problems when executing a function in an else branch. It seems the exception is no longer needed as the regression tests pass without it.
2017-08-2441590 modified as 41595: make ERR_RETURN more logical.Peter Stephenson1-0/+30
It now operates separately at each function depth. To keep ERR_EXIT global, make the noerrexit variable usd bit flags. Extend tests.
2017-08-1441542: Fix pcre logic for extracting matched parentheses.Peter Stephenson1-0/+24
When we went off the end of the array but measured the length implicitly, we got lucky before. After 41308 we were looking up lengths in stale memory. Rename some variables, clean up the logic, be easier to understand. Add tests.
2017-08-1141527 (tweaked for heap memory): fix [[ -<cond> ]] from modulesPhil Pennock1-0/+9
2017-08-0941504: make empty strings work in case patterns with no leading parenthesisPeter Stephenson1-0/+37
2017-08-08Revert "41499 (with one further tweak): POSIX_STRINGS behaviour."Peter Stephenson1-41/+0
This reverts commit 2eacbef91913fe967335812900d43cf2edfa54d9. Conflicts: ChangeLog
2017-08-0741499 (with one further tweak): POSIX_STRINGS behaviour.Peter Stephenson1-0/+41
Ignore a terminating delimiter when splitting as separators despite being called separators are terminators.
2017-08-0341485: test for previous fixPeter Stephenson1-0/+5
2017-07-2741464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands.Peter Stephenson1-0/+14
Document the default behaviour and add a test.
2017-07-1341420: "{.." wasn't check for brace expansion properlyPeter Stephenson1-0/+4
2017-07-0222760: fix partial string length reports with NO_MULTIBYTEPeter Stephenson1-0/+20
2017-06-2241308 (tweaked): behaviour of PCRE with NUL bytesPhil Pennock1-0/+6
2017-06-1341284: Fix NULL dereference in cd.Peter Stephenson1-0/+4
This happened in sh compatiblity mode if HOME was not set and cd was used with no argument.
2017-05-09unposted: Adding comments to test changed line number in outputPeter Stephenson1-1/+1
2017-05-0940181: Fix buffer overrun in xsymlinks.Peter Stephenson1-0/+8
There was no check for copying to the internal xbuf2 for a preliminary test.
2017-05-0941078: Empty psvar could cause bad dereference in prompt expansionPeter Stephenson1-0/+4
2017-05-0840173: Off-by-one error checking for {varid}.Peter Stephenson1-0/+9
This caused a single unprintable character in braces before a redirection to be treated as an indentifier.
2017-05-08users/22688: Allow mixing redirs and arguments after anon functions.Peter Stephenson1-0/+12
These are parsed differently from the case of normal functions which can't take normal arguments at that point.
2017-05-08Fix combination of HERE document and |&.Peter Stephenson1-0/+15
A missing flag setting up the HERE document mean that the size of the wordcode needed to append the 2>&1 was counted incorrectly, so the resulting wordcode was garbled. Add test.
2017-04-2841020: Fix "command -p"; "-p" was incorrectly left in command argumentsPeter Stephenson1-1/+11
Also add tests for known precommand modifier issues.
2017-04-2741012: Fix premature exit from nested function in EXIT trap.Peter Stephenson1-0/+21
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.
2017-04-2741016: Test that quoted precommand modifiers now workPeter Stephenson1-0/+6
2017-04-2641008: Handle expansions for precommand modifiersPeter Stephenson2-0/+36
2017-04-2340995: Don't disable alias expansion when finding command substitution limitsPeter Stephenson1-0/+10
This is needed in some unusual cases in order to identify the exit condition without encountering a parse error.
2017-04-0340932: Parameter subscripts need to count parentheses.Peter Stephenson1-0/+7
Otherwise they can terminate in the middle of an expression.
2017-03-3040909: Stress test for parameter substitutionSebastian Gniazdowski1-0/+12
2017-03-2340891: fix more zero-length matches.Peter Stephenson1-0/+10
This time at the end of the trial string.
2017-03-2322601: Fix for parameter substitution pattern matches.Peter Stephenson1-0/+10
It was not possible to math against a zero-length string in some cases.
2017-03-21Improve comment at top of GDBM testPeter Stephenson1-1/+3
2017-03-1240816: Document interaction of 'print -P' and 'print -f'.Daniel Shahaf1-1/+9
2017-03-1240820: add a few tests of strftime, related to 40681Jun-ichi Takimoto1-2/+12
2017-03-0940803, 40804, 40805, 40806: Parameter test additions.Peter Stephenson1-1/+13
Potentially dodgy string for ${(z)...} splitting from Sebastian. Check that $- and ${-} produce plausible results.
2017-03-0740706: Fix ordering dependence in gdbm testSebastian Gniazdowski1-28/+46
2017-03-0740760: Always tokenize unquoted - to Dash.Peter Stephenson1-0/+6
This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care.
2017-03-0440781: optimize array assignment, similar to 39995 for string assignmentSebastian Gniazdowski1-0/+66
2017-03-0340173: No error on failure to load zsh/db/gdbm in test.Peter Stephenson1-1/+1
This is a soft error causing the test to be skipped, with a report to that effect.
2017-03-0140622 with typos fixed: functions -Ms.Peter Stephenson1-0/+18
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.
2017-03-0140562: gdbm tests omitted from previous commitSebastian Gniazdowski1-0/+307
2017-02-26Revert 40626 which broke tests.Daniel Shahaf1-3/+0
2017-02-2540626: Make $options re-settable.Daniel Shahaf1-0/+3
Follow-up to 40508. Reported-by: James McGlashan
2017-02-20use "diff -a" in case special characters were written to the test outputBarton E. Schaefer1-1/+1
2017-02-2040565 (tweaked): test cases for assigning array to scalar with various ↵Barton E. Schaefer1-0/+80
combinations of SHWORDSPLIT and IFS
2017-02-0840508: Make $functions re-settable.Daniel Shahaf1-0/+6
2017-02-0140460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing ↵Daniel Shahaf1-0/+4
array
2017-02-0140470: make the test work also with ASCII collationJun-ichi Takimoto1-16/+14
a few OSs (macOS and some versions of BSDs) use ASCII collation even if UTF-8 locale is in use
2017-01-3040465: update methods to output $PWD in tests.Peter Stephenson2-15/+26
Use method from B01cd.tst which resolves symbolic links and matches against parameter in output.
2017-01-2840440: Add $functions_source hash to zsh/parameter.Peter Stephenson2-9/+22
This allows you to find out where a function was loaded from.
2017-01-2640423: WARN_NESTED_VARS, conversion the other wayPeter Stephenson1-1/+13
2017-01-2640422: More WARN_NESTED_VAR cases.Peter Stephenson1-0/+12
Converting type when using a calling scope was broken in the original patch.