about summary refs log tree commit diff
path: root/Test
Commit message (Collapse)AuthorAgeFilesLines
* unposted: Adding comments to test changed line number in outputPeter Stephenson2017-05-091-1/+1
|
* 40181: Fix buffer overrun in xsymlinks.Peter Stephenson2017-05-091-0/+8
| | | | | There was no check for copying to the internal xbuf2 for a preliminary test.
* 41078: Empty psvar could cause bad dereference in prompt expansionPeter Stephenson2017-05-091-0/+4
|
* 40173: Off-by-one error checking for {varid}.Peter Stephenson2017-05-081-0/+9
| | | | | This caused a single unprintable character in braces before a redirection to be treated as an indentifier.
* users/22688: Allow mixing redirs and arguments after anon functions.Peter Stephenson2017-05-081-0/+12
| | | | | These are parsed differently from the case of normal functions which can't take normal arguments at that point.
* Fix combination of HERE document and |&.Peter Stephenson2017-05-081-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.
* 41020: Fix "command -p"; "-p" was incorrectly left in command argumentsPeter Stephenson2017-04-281-1/+11
| | | | Also add tests for known precommand modifier issues.
* 41012: Fix premature exit from nested function in EXIT trap.Peter Stephenson2017-04-271-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.
* 41016: Test that quoted precommand modifiers now workPeter Stephenson2017-04-271-0/+6
|
* 41008: Handle expansions for precommand modifiersPeter Stephenson2017-04-262-0/+36
|
* 40995: Don't disable alias expansion when finding command substitution limitsPeter Stephenson2017-04-231-0/+10
| | | | | This is needed in some unusual cases in order to identify the exit condition without encountering a parse error.
* 40932: Parameter subscripts need to count parentheses.Peter Stephenson2017-04-031-0/+7
| | | | Otherwise they can terminate in the middle of an expression.
* 40909: Stress test for parameter substitutionSebastian Gniazdowski2017-03-301-0/+12
|
* 40891: fix more zero-length matches.Peter Stephenson2017-03-231-0/+10
| | | | This time at the end of the trial string.
* 22601: Fix for parameter substitution pattern matches.Peter Stephenson2017-03-231-0/+10
| | | | | It was not possible to math against a zero-length string in some cases.
* Improve comment at top of GDBM testPeter Stephenson2017-03-211-1/+3
|
* 40816: Document interaction of 'print -P' and 'print -f'.Daniel Shahaf2017-03-121-1/+9
|
* 40820: add a few tests of strftime, related to 40681Jun-ichi Takimoto2017-03-121-2/+12
|
* 40803, 40804, 40805, 40806: Parameter test additions.Peter Stephenson2017-03-091-1/+13
| | | | | | Potentially dodgy string for ${(z)...} splitting from Sebastian. Check that $- and ${-} produce plausible results.
* 40706: Fix ordering dependence in gdbm testSebastian Gniazdowski2017-03-071-28/+46
|
* 40760: Always tokenize unquoted - to Dash.Peter Stephenson2017-03-071-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.
* 40781: optimize array assignment, similar to 39995 for string assignmentSebastian Gniazdowski2017-03-041-0/+66
|
* 40173: No error on failure to load zsh/db/gdbm in test.Peter Stephenson2017-03-031-1/+1
| | | | | This is a soft error causing the test to be skipped, with a report to that effect.
* 40622 with typos fixed: functions -Ms.Peter Stephenson2017-03-011-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.
* 40562: gdbm tests omitted from previous commitSebastian Gniazdowski2017-03-011-0/+307
|
* Revert 40626 which broke tests.Daniel Shahaf2017-02-261-3/+0
|
* 40626: Make $options re-settable.Daniel Shahaf2017-02-251-0/+3
| | | | | | Follow-up to 40508. Reported-by: James McGlashan
* use "diff -a" in case special characters were written to the test outputBarton E. Schaefer2017-02-201-1/+1
|
* 40565 (tweaked): test cases for assigning array to scalar with various ↵Barton E. Schaefer2017-02-201-0/+80
| | | | combinations of SHWORDSPLIT and IFS
* 40508: Make $functions re-settable.Daniel Shahaf2017-02-081-0/+6
|
* 40460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing ↵Daniel Shahaf2017-02-011-0/+4
| | | | array
* 40470: make the test work also with ASCII collationJun-ichi Takimoto2017-02-011-16/+14
| | | | | a few OSs (macOS and some versions of BSDs) use ASCII collation even if UTF-8 locale is in use
* 40465: update methods to output $PWD in tests.Peter Stephenson2017-01-302-15/+26
| | | | | Use method from B01cd.tst which resolves symbolic links and matches against parameter in output.
* 40440: Add $functions_source hash to zsh/parameter.Peter Stephenson2017-01-282-9/+22
| | | | This allows you to find out where a function was loaded from.
* 40423: WARN_NESTED_VARS, conversion the other wayPeter Stephenson2017-01-261-1/+13
|
* 40422: More WARN_NESTED_VAR cases.Peter Stephenson2017-01-261-0/+12
| | | | | Converting type when using a calling scope was broken in the original patch.
* 40413: WARN_NESTED_VAR subscripted variable fix.Peter Stephenson2017-01-251-0/+15
| | | | | No warning needed on paramter that's created temporarily to help assignment.
* posted: Make D07 recognize more spellings of pl_PL.UTF-8Mikael Magnusson2017-01-241-2/+2
| | | | | FreeBSD and probably others use this spelling in locale -a output, while glibc uses the utf8 spelling.
* 40391: Add WARN_NESTED_VAR option and functions -W.Peter Stephenson2017-01-231-1/+56
| | | | | These are companions to WARN_CREATED_GLOBAL, warning when a variable from an enclosing scope is altered.
* 43080: a few more tests for autoload with absolute pathPeter Stephenson2017-01-181-0/+25
|
* 40342: Add directory name cache for autoload file paths.Peter Stephenson2017-01-121-0/+39
| | | | | This renders "autoload /blah/blah/*" as efficient as use of fpath.
* 40335: More care with autoload function path.Peter Stephenson2017-01-121-0/+10
| | | | | | If doing "autoload -X", the path present might actually be location of file containing the function with the autoload -X. Add an explicit flag to say it's a directory for autoload.
* 40321: _arguments option groupsOliver Kiddle2017-01-111-0/+77
|
* Add features associated with autoloading a function using an absolutePeter Stephenson2017-01-111-0/+89
| | | | | | | | | | | | | path. -d defaults to normal fpath -r remembers the path without actually loading. May be combined with -d. -R does the same but it's an error if not found -X can now take a directory path: this is used to output not yet loaded functions that have an associated path.
* 40306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson2017-01-101-0/+22
| | | | | | | definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again.
* 40269: handle option exclusion within current word for clumped optionsOliver Kiddle2017-01-051-6/+19
| | | | This replaces the change made in 13999 with an alternative approach.
* 40227: handle _arguments sets and rest arguments starting with a dashOliver Kiddle2017-01-041-9/+7
| | | | | This is a new approach to the problem first covered by 39611: checking to see if an option-like argument belongs to one of the other sets.
* 40226: tidy up some of the _arguments set codeOliver Kiddle2017-01-041-2/+57
| | | | | | Remove old code for applying explicit exclusions between sets which fixes some odd behaviour. Some struct members were unused. Also added some comments and test cases.
* 40162: _arguments support for a match spec in combination with setsOliver Kiddle2016-12-221-0/+5
|
* 40203: Resolve 'printf --' question from grandparent commit (thanks Chet).Daniel Shahaf2016-12-161-2/+0
|