Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 48787: Fix command status after failed if | Peter Stephenson | 2021-05-06 | 1 | -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 repeat | Peter Stephenson | 2020-03-26 | 1 | -0/+7 |
| | |||||
* | 45304: Do execute the always block even when the try/always block itself is ↵ | Daniel Shahaf | 2020-01-16 | 1 | -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 Shahaf | 2020-01-16 | 1 | -0/+4 |
| | | | | try/always. | ||||
* | 45111: zshmisc(1): Clarify the documentation of 'return' and 'exit' in ↵ | Daniel Shahaf | 2019-12-22 | 1 | -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 Shahaf | 2019-12-21 | 1 | -8/+8 |
| | |||||
* | 44345: fix wordcode traversal where ! without a following command could ↵ | Oliver Kiddle | 2019-05-23 | 1 | -0/+33 |
| | | | | result in a crash | ||||
* | 44271: Fix breaks propagated from until or return. | Peter Stephenson | 2019-05-03 | 1 | -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 Shahaf | 2018-10-24 | 1 | -0/+10 |
| | |||||
* | add millisecond and microsecond options to TIMEFMT variable | dana | 2017-12-14 | 1 | -0/+4 |
| | |||||
* | 41662: exec -a arguments weren't sanitised | Peter Stephenson | 2017-09-10 | 1 | -0/+6 |
| | |||||
* | 41504: make empty strings work in case patterns with no leading parenthesis | Peter Stephenson | 2017-08-09 | 1 | -0/+37 |
| | |||||
* | 41020: Fix "command -p"; "-p" was incorrectly left in command arguments | Peter Stephenson | 2017-04-28 | 1 | -1/+11 |
| | | | | Also add tests for known precommand modifier issues. | ||||
* | 41016: Test that quoted precommand modifiers now work | Peter Stephenson | 2017-04-27 | 1 | -0/+6 |
| | |||||
* | 41008: Handle expansions for precommand modifiers | Peter Stephenson | 2017-04-26 | 1 | -0/+22 |
| | |||||
* | 39625: case needs to reset lastval if no pattern matched | Martijn Dekker | 2016-10-13 | 1 | -0/+17 |
| | |||||
* | 39599: Don't reset status before "case" execution | Peter Stephenson | 2016-10-10 | 1 | -0/+8 |
| | |||||
* | 39521: Refactor start of execcmd(). | Peter Stephenson | 2016-10-03 | 1 | -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 Stephenson | 2016-09-30 | 1 | -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 Stephenson | 2016-09-29 | 1 | -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 Stephenson | 2016-09-29 | 1 | -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 Stephenson | 2016-06-21 | 1 | -0/+8 |
| | |||||
* | 35953: fix handling of command substitution in math context | Barton E. Schaefer | 2015-07-29 | 1 | -0/+6 |
| | |||||
* | 35760: Add ZTST_skip to test system | Peter Stephenson | 2015-07-10 | 1 | -0/+13 |
| | |||||
* | Turning case parsed as multiple alternatives back into text. | Peter Stephenson | 2015-07-04 | 1 | -0/+24 |
| | | | | Also add test. | ||||
* | 35248: treat fully parenthised zsh patterns as complete case patterns again | Peter Stephenson | 2015-05-21 | 1 | -3/+33 |
| | |||||
* | 35184: Additional case fix for 35168. | Peter Stephenson | 2015-05-18 | 1 | -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 Stephenson | 2015-05-18 | 1 | -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 pending | Peter Stephenson | 2015-05-13 | 1 | -0/+22 |
| | |||||
* | 29025: Test/A01grammar.ztst: in select test, assert LINES=3 to print list | Bart Schaefer | 2011-04-22 | 1 | -1/+1 |
| | |||||
* | 28783: allow parentheses to be special in more places with SH_GLOB | Peter Stephenson | 2011-02-21 | 1 | -0/+12 |
| | |||||
* | unposted: fix new test in A01grammar.ztst | Peter Stephenson | 2010-03-18 | 1 | -1/+1 |
| | |||||
* | 27793 and follow ups: add PATH_SCRIPT option to find script using $PATH | Peter Stephenson | 2010-03-16 | 1 | -0/+18 |
| | |||||
* | 27129: fix status at start of function, command subst, etc. | Peter Stephenson | 2009-07-11 | 1 | -0/+6 |
| | |||||
* | 27126: a few more contexts where executing empty lists gives status zero | Peter Stephenson | 2009-07-10 | 1 | -0/+22 |
| | |||||
* | 27106: reset status on command that expands to empty | Peter Stephenson | 2009-07-10 | 1 | -0/+4 |
| | | | | 27122: add POSIX_JOBS option | ||||
* | 27092: missing then-clause for if wasn't an error | Peter Stephenson | 2009-07-06 | 1 | -1/+6 |
| | |||||
* | 27087: change return codes from failed "." | Peter Stephenson | 2009-07-02 | 1 | -2/+2 |
| | |||||
* | 27083: non-zero status on failures to find or execute file in "." | Peter Stephenson | 2009-07-01 | 1 | -1/+8 |
| | |||||
* | 26858: use zsh instead of sh in exec -l test | Peter Stephenson | 2009-04-21 | 1 | -2/+2 |
| | |||||
* | 26622: improve comments within $(...) and add test | Peter Stephenson | 2009-02-27 | 1 | -0/+12 |
| | |||||
* | users/12848: return, break, continue in always block override try block | Peter Stephenson | 2008-05-11 | 1 | -0/+8 |
| | |||||
* | users/12305: option output not well documented | Peter Stephenson | 2007-12-12 | 1 | -1/+1 |
| | | | | -c and SHIN_STDIN inconsistent with manual | ||||
* | 23486: use {fd} syntax to get fd's for tests | Peter Stephenson | 2007-05-29 | 1 | -1/+1 |
| | |||||
* | Phil Pennock + tweaks: 23398 + more tweaks: exec compatibility options | Peter Stephenson | 2007-05-08 | 1 | -0/+16 |
| | |||||
* | 23115: ";|" at end of case clause causes later patterns to be tested | Peter Stephenson | 2007-01-19 | 1 | -0/+23 |
| | |||||
* | 21131: exit with status 127 when script not found | Peter Stephenson | 2005-04-11 | 1 | -0/+4 |
| | |||||
* | 21082: Dan Nelson: fix zsh -c exit status on parse error | Peter Stephenson | 2005-04-04 | 1 | -0/+4 |
| | |||||
* | 21078: parse errors didn't cause non-zero exit status | Peter Stephenson | 2005-04-01 | 1 | -0/+9 |
| | |||||
* | 20076, 20084: { ... } always { ... } syntax. | Peter Stephenson | 2004-06-22 | 1 | -0/+79 |
| |