summaryrefslogtreecommitdiff
path: root/Test
AgeCommit message (Collapse)AuthorFilesLines
2016-10-0339521: Refactor start of execcmd().Peter Stephenson1-9/+6
By splitting into _analyse and _exec execpline2() has easier access to the state at the start of execution. Use this to ensure we fork if this is a builtin with no arguments.
2016-10-0239540: "! command" should suppress ERR_EXIT and ERR_RETURNPeter Stephenson1-0/+37
2016-09-3039517: back off 39502 (WC_ASSIGN causes fork in pipe).Peter Stephenson1-6/+9
This isn't a robust fix as WC_ASSIGNs simply precede the main wordcode.
2016-09-2939502: Fork for assignment in LHS of pipeline.Peter Stephenson1-0/+7
foo=bar | stuff left the value of foo set to bar as we didn't realise we needed to fork.
2016-09-2934943: Fixes for "command" with multiple options.Peter Stephenson1-0/+10
These need to combine properly, and alos "command -p" with either -v or -V needs to search for builtins and then using the default system path.
2016-09-1639332: support ksh's [[ -v varname ]] condition for checking if variables ↵Oliver Kiddle1-0/+19
are set
2016-09-14zsh-users/21903: Fix ${...?...} in interactive shell.Peter Stephenson1-0/+14
On failure should abort back to top level, but we reset the error flag around commands. Add a hard error flag that's only reset at top level.
2016-09-1339292: Distinguish "=" and "==" tests in output.Peter Stephenson3-4/+13
This is both in xtrace output and shell code rebuilt from internal structures.
2016-09-09unposted: Add tests for ${(q)} being aware of the EQUALS option.Daniel Shahaf1-0/+4
2016-09-0839222: test math functions in modules.Peter Stephenson1-0/+74
Use zsh/system.
2016-08-3139141: Use zsh instead of sh in SHLVL test.Peter Stephenson1-12/+14
This removes ambiguous behaviour of sh which may or may not increment SHLVL.
2016-08-3139125: More care needed decrementing SHLVL on exec.Stephane Chazelas1-0/+18
Not needed in subshell.
2016-08-2939115: repair forced joining when (@) and (j) are used togetherBarton E. Schaefer1-0/+9
2016-08-2239046 + 39061: New :P history modifier.Daniel Shahaf1-0/+8
2016-08-1239035: ${(A)name=word} should expand as an array even when there is only one ↵Barton E. Schaefer1-0/+5
element.
2016-08-1239028: more join/split cases fixed and tested.Barton E. Schaefer1-2/+8
2016-08-1139019 (cf. PWS 39013): add test cases for more join/split combinationsBarton E. Schaefer1-0/+55
Accidentally omitted from previous commit.
2016-08-0538991: Make 'whence -v autoloaded-function' shows the defining filename.Daniel Shahaf1-0/+10
This may also fix a problem whereby the %x prompt escape evaluated to a function name rather than a filename, since %x is also backed by scriptfilename.
2016-07-1838879: Unmetafy file names for glob sort.Peter Stephenson1-0/+17
Test using Polish UTF-8 collation sequence that'w known to cause the problems.
2016-07-0538728: Tests: Add tests for the ':a' and ':A' modifiers.Daniel Shahaf1-1/+24
2016-06-2538652: test harness: Emit unified diffs instead of context diffsDaniel Shahaf1-3/+3
2016-06-2238746: Fix suffix alias expansion recursion.Peter Stephenson1-0/+6
This was problematic if the expansion landed you back in command position. Delay marking the alias as out of use until the text that caused the expansion is finished.
2016-06-2138734: fix final case clauses terminating with ;&Peter Stephenson1-0/+8
2016-06-1338653 + 38657: 'functions -T' tracing: recurse into anonymous functions.Daniel Shahaf1-0/+17
2016-06-0338586: Metafication problem with $functionsPeter Stephenson1-0/+9
If treated as a complete associative array or scanned (retrieving individual values was not affected), it incorrectly unmetafied the value so multibyte characters got confused. Add test.
2016-05-0938445: subsequent tests rely on a file touched by the -N test, so it must ↵Jun T1-3/+4
always be touched (Bart) Minor tweak to SECONDS loop to make total of sleeps be 60 seconds
2016-05-0238375 (tweaked per 38384): try harder to detect noatime filesystems.Barton E. Schaefer1-5/+17
2016-04-2938358: "fgrep --" for noatime check in case a mount point is named "-"Barton E. Schaefer1-1/+1
2016-04-23Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothingBarton E. Schaefer1-0/+7
unposted: regression test for 38307
2016-03-07users/21352: ensure $'' doesn't get elided.Peter Stephenson1-0/+4
Assign nulstring to it if empty. Test for all forms of quotation marks.
2016-03-0738094: Fix POSIX EXIT traps defined in function.Peter Stephenson1-2/+20
These aren't local, so set the local level to 0; else they can get overridden incorrectly.
2016-02-2538024: Improve POSIX and native EXIT traps compatibility.Peter Stephenson1-0/+17
Allow a nested function trap to leave save and restore a POSIX trap. Still fails if the POSIX trap was defined in a function.
2016-02-1737999: Sticky behaviour of EXIT traps.Peter Stephenson1-0/+20
They now have POSIX or non-POSIX behaviour based on the setting of POSIX_TRAPS where the trap was defined, rather than where the trap would (or would not) be executed. Tweaks possible.
2016-02-0837914: reparse associative array subscripts in "unset" so keys with "[" or ↵Barton E. Schaefer1-1/+1
"]" may be backslash-escaped Also fix erroneous test case this revealed.
2016-01-2937752: More tests for the previous patch.Daniel Shahaf1-0/+18
2016-01-2937700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax.Daniel Shahaf1-0/+16
2016-01-2537765: Use FS_FUNC on fucstack to find autoload -X target.Peter Stephenson1-0/+13
This is better than scriptname which can be updated due to e.g. intervening "eval".
2016-01-2137722: test builtin should return status 2 on syntax errorPeter Stephenson1-6/+6
2016-01-2037705: don't turn - to Dash after start of brace parameterPeter Stephenson1-0/+6
2016-01-1937689: ! and ^ need to be tokenised in character setsPeter Stephenson1-0/+33
2016-01-1937678: Now possible to quote "-" in pattern rangePeter Stephenson1-0/+40
2016-01-1937646: bit missed out of previous readonly commit.Peter Stephenson1-0/+5
I mean, the commit about readonly. Commits aren't readonly, this is git.
2016-01-1337591: 'alias -L': skip with a warning aliases with '=' in their LHSDaniel Shahaf1-0/+8
2016-01-08Jun T.: 37515: multibyte handling as per 35448.Barton E. Schaefer1-0/+11
2016-01-0437501 (+ revise test): correct byte counts when simulating memstream via ↵Jun T1-5/+5
temp file
2016-01-0337489, tweaked: with POSIX_IDENTIFIERS create math var as scalarPeter Stephenson1-0/+11
2016-01-0237493: readonly + POSIX_BUILTINS == typeset -grBarton E. Schaefer1-4/+4
2015-12-3137467: add "print -v var" / "printf -v var"Barton E. Schaefer1-0/+9
2015-12-3137453 (with Bart, started by Baptiste Daroussin, 37315): try to improve ↵Oliver Kiddle1-1/+1
detection of noatime filesystem
2015-12-3037460: make sure the default keymap is emacs before using that keymap to ↵Barton E. Schaefer1-0/+1
test bindings