about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
Commit message (Collapse)AuthorAgeFilesLines
* 48787: Fix command status after failed ifPeter Stephenson2021-05-061-0/+5
| | | | | | | If "if" had a hard error in the condition, and there was no else clause, the command status was incorrectly cleared to zero. Add test.
* 45616: Remove token from count argument to repeatPeter Stephenson2020-03-261-0/+7
|
* 45304: Do execute the always block even when the try/always block itself is ↵Daniel Shahaf2020-01-161-1/+1
| | | | | | the last command. Fixes the test added in the previous commit (workers/45305).
* 45305: Add an XFail test: The exec-last-command optimization is applied to ↵Daniel Shahaf2020-01-161-0/+4
| | | | try/always.
* 45111: zshmisc(1): Clarify the documentation of 'return' and 'exit' in ↵Daniel Shahaf2019-12-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | conjunction with try/always Having reviewed 20076, 20084, 21734, and 21735, my understanding is that the original intention was: - A 'return' in a function does run always-list - An 'exit' outside a function does not run always-list - A 'return' outside a function is treated as an 'exit' All of which are the case today. The remaining case, of 'exit' used inside a function, was not specified by the referenced -workers@ posts; does, as implemented, run the always-list; and furthermore, based in 21734 it's fair to assume that the original documentation was assuming that 'exit' would be used outside of any function, just like it assumed 'return' would be used inside a function. Therefore, have the documentation specify only the behaviour of 'exit' outside any function, and leave the behaviour of 'exit' inside a function unspecified. Anyone who relied on the documentation of 'exit' as documented until this commit would have run into the documentation/implementation discrepancy described in 45075.
* unposted: Group related tests. No functional change.Daniel Shahaf2019-12-211-8/+8
|
* 44345: fix wordcode traversal where ! without a following command could ↵Oliver Kiddle2019-05-231-0/+33
| | | | result in a crash
* 44271: Fix breaks propagated from until or return.Peter Stephenson2019-05-031-0/+10
| | | | | | If the until or return test caused continuation but there was a pending return, breaks didn't get cancelled causing enclosing scope to skip commands.
* 43726: Add tests for semicolon in the middle of a sublist not terminating it.Daniel Shahaf2018-10-241-0/+10
|
* add millisecond and microsecond options to TIMEFMT variabledana2017-12-141-0/+4
|
* 41662: exec -a arguments weren't sanitisedPeter Stephenson2017-09-101-0/+6
|
* 41504: make empty strings work in case patterns with no leading parenthesisPeter Stephenson2017-08-091-0/+37
|
* 41020: Fix "command -p"; "-p" was incorrectly left in command argumentsPeter Stephenson2017-04-281-1/+11
| | | | Also add tests for known precommand modifier issues.
* 41016: Test that quoted precommand modifiers now workPeter Stephenson2017-04-271-0/+6
|
* 41008: Handle expansions for precommand modifiersPeter Stephenson2017-04-261-0/+22
|
* 39625: case needs to reset lastval if no pattern matchedMartijn Dekker2016-10-131-0/+17
|
* 39599: Don't reset status before "case" executionPeter Stephenson2016-10-101-0/+8
|
* 39521: Refactor start of execcmd().Peter Stephenson2016-10-031-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.
* 39517: back off 39502 (WC_ASSIGN causes fork in pipe).Peter Stephenson2016-09-301-6/+9
| | | | This isn't a robust fix as WC_ASSIGNs simply precede the main wordcode.
* 39502: Fork for assignment in LHS of pipeline.Peter Stephenson2016-09-291-0/+7
| | | | | | | foo=bar | stuff left the value of foo set to bar as we didn't realise we needed to fork.
* 34943: Fixes for "command" with multiple options.Peter Stephenson2016-09-291-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.
* 38734: fix final case clauses terminating with ;&Peter Stephenson2016-06-211-0/+8
|
* 35953: fix handling of command substitution in math contextBarton E. Schaefer2015-07-291-0/+6
|
* 35760: Add ZTST_skip to test systemPeter Stephenson2015-07-101-0/+13
|
* Turning case parsed as multiple alternatives back into text.Peter Stephenson2015-07-041-0/+24
| | | | Also add test.
* 35248: treat fully parenthised zsh patterns as complete case patterns againPeter Stephenson2015-05-211-3/+33
|
* 35184: Additional case fix for 35168.Peter Stephenson2015-05-181-0/+15
| | | | | Lexical analysis flags got screwed up after a "|", so we didn't parse patterns properly, in particular those with parentheses.
* 35168: Improve parsing of case patterns.Peter Stephenson2015-05-181-0/+39
| | | | | | | | | | | | | | "|" is now found properly by looking for words that come from the lexical analyser, rather than hacking a pattern returned in one dollop. Update some completion functions that need extra quoting as a result. Add test for new parsing. Update version number to 5.0.8-dev-3 because of wordcode incompatibility.
* users/20203: nested functions in always blocks when exit pendingPeter Stephenson2015-05-131-0/+22
|
* 29025: Test/A01grammar.ztst: in select test, assert LINES=3 to print listBart Schaefer2011-04-221-1/+1
|
* 28783: allow parentheses to be special in more places with SH_GLOBPeter Stephenson2011-02-211-0/+12
|
* unposted: fix new test in A01grammar.ztstPeter Stephenson2010-03-181-1/+1
|
* 27793 and follow ups: add PATH_SCRIPT option to find script using $PATHPeter Stephenson2010-03-161-0/+18
|
* 27129: fix status at start of function, command subst, etc.Peter Stephenson2009-07-111-0/+6
|
* 27126: a few more contexts where executing empty lists gives status zeroPeter Stephenson2009-07-101-0/+22
|
* 27106: reset status on command that expands to emptyPeter Stephenson2009-07-101-0/+4
| | | | 27122: add POSIX_JOBS option
* 27092: missing then-clause for if wasn't an errorPeter Stephenson2009-07-061-1/+6
|
* 27087: change return codes from failed "."Peter Stephenson2009-07-021-2/+2
|
* 27083: non-zero status on failures to find or execute file in "."Peter Stephenson2009-07-011-1/+8
|
* 26858: use zsh instead of sh in exec -l testPeter Stephenson2009-04-211-2/+2
|
* 26622: improve comments within $(...) and add testPeter Stephenson2009-02-271-0/+12
|
* users/12848: return, break, continue in always block override try blockPeter Stephenson2008-05-111-0/+8
|
* users/12305: option output not well documentedPeter Stephenson2007-12-121-1/+1
| | | | -c and SHIN_STDIN inconsistent with manual
* 23486: use {fd} syntax to get fd's for testsPeter Stephenson2007-05-291-1/+1
|
* Phil Pennock + tweaks: 23398 + more tweaks: exec compatibility optionsPeter Stephenson2007-05-081-0/+16
|
* 23115: ";|" at end of case clause causes later patterns to be testedPeter Stephenson2007-01-191-0/+23
|
* 21131: exit with status 127 when script not foundPeter Stephenson2005-04-111-0/+4
|
* 21082: Dan Nelson: fix zsh -c exit status on parse errorPeter Stephenson2005-04-041-0/+4
|
* 21078: parse errors didn't cause non-zero exit statusPeter Stephenson2005-04-011-0/+9
|
* 20076, 20084: { ... } always { ... } syntax.Peter Stephenson2004-06-221-0/+79
|