Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 41668: New --emulate option on invocation. | Peter Stephenson | 2017-09-11 | 1 | -0/+25 |
| | | | | | | | | This sets the shell emulation mode similarly to ARGV0=... which doesn't work from other shells. Note that this gives more comprehensive emulation than running emulate within the shell. | ||||
* | 41662: exec -a arguments weren't sanitised | Peter Stephenson | 2017-09-10 | 1 | -0/+6 |
| | |||||
* | 41661: Need to remove tokens before using bufferwords() for (z) | Peter Stephenson | 2017-09-10 | 1 | -0/+7 |
| | |||||
* | 41641: Some math operations shouldn't be lvalues. | Peter Stephenson | 2017-09-05 | 1 | -0/+13 |
| | | | | | This includes pre- and post- increment and decrement. Simply mark all values after operations as rvalues. | ||||
* | Fix problem with ERR_RETURN. | Peter Stephenson | 2017-08-31 | 1 | -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. | ||||
* | 41608 (plus tests): restore ERR_EXIT before function. | Peter Stephenson | 2017-08-29 | 1 | -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. | ||||
* | 41590 modified as 41595: make ERR_RETURN more logical. | Peter Stephenson | 2017-08-24 | 1 | -0/+30 |
| | | | | | | | | It now operates separately at each function depth. To keep ERR_EXIT global, make the noerrexit variable usd bit flags. Extend tests. | ||||
* | 41542: Fix pcre logic for extracting matched parentheses. | Peter Stephenson | 2017-08-14 | 1 | -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. | ||||
* | 41527 (tweaked for heap memory): fix [[ -<cond> ]] from modules | Phil Pennock | 2017-08-11 | 1 | -0/+9 |
| | |||||
* | 41504: make empty strings work in case patterns with no leading parenthesis | Peter Stephenson | 2017-08-09 | 1 | -0/+37 |
| | |||||
* | Revert "41499 (with one further tweak): POSIX_STRINGS behaviour." | Peter Stephenson | 2017-08-08 | 1 | -41/+0 |
| | | | | | | | This reverts commit 2eacbef91913fe967335812900d43cf2edfa54d9. Conflicts: ChangeLog | ||||
* | 41499 (with one further tweak): POSIX_STRINGS behaviour. | Peter Stephenson | 2017-08-07 | 1 | -0/+41 |
| | | | | | Ignore a terminating delimiter when splitting as separators despite being called separators are terminators. | ||||
* | 41485: test for previous fix | Peter Stephenson | 2017-08-03 | 1 | -0/+5 |
| | |||||
* | 41464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands. | Peter Stephenson | 2017-07-27 | 1 | -0/+14 |
| | | | | Document the default behaviour and add a test. | ||||
* | 41420: "{.." wasn't check for brace expansion properly | Peter Stephenson | 2017-07-13 | 1 | -0/+4 |
| | |||||
* | 22760: fix partial string length reports with NO_MULTIBYTE | Peter Stephenson | 2017-07-02 | 1 | -0/+20 |
| | |||||
* | 41308 (tweaked): behaviour of PCRE with NUL bytes | Phil Pennock | 2017-06-22 | 1 | -0/+6 |
| | |||||
* | 41284: Fix NULL dereference in cd. | Peter Stephenson | 2017-06-13 | 1 | -0/+4 |
| | | | | | This happened in sh compatiblity mode if HOME was not set and cd was used with no argument. | ||||
* | unposted: Adding comments to test changed line number in output | Peter Stephenson | 2017-05-09 | 1 | -1/+1 |
| | |||||
* | 40181: Fix buffer overrun in xsymlinks. | Peter Stephenson | 2017-05-09 | 1 | -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 expansion | Peter Stephenson | 2017-05-09 | 1 | -0/+4 |
| | |||||
* | 40173: Off-by-one error checking for {varid}. | Peter Stephenson | 2017-05-08 | 1 | -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 Stephenson | 2017-05-08 | 1 | -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 Stephenson | 2017-05-08 | 1 | -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 arguments | Peter Stephenson | 2017-04-28 | 1 | -1/+11 |
| | | | | Also add tests for known precommand modifier issues. | ||||
* | 41012: Fix premature exit from nested function in EXIT trap. | Peter Stephenson | 2017-04-27 | 1 | -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 work | Peter Stephenson | 2017-04-27 | 1 | -0/+6 |
| | |||||
* | 41008: Handle expansions for precommand modifiers | Peter Stephenson | 2017-04-26 | 2 | -0/+36 |
| | |||||
* | 40995: Don't disable alias expansion when finding command substitution limits | Peter Stephenson | 2017-04-23 | 1 | -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 Stephenson | 2017-04-03 | 1 | -0/+7 |
| | | | | Otherwise they can terminate in the middle of an expression. | ||||
* | 40909: Stress test for parameter substitution | Sebastian Gniazdowski | 2017-03-30 | 1 | -0/+12 |
| | |||||
* | 40891: fix more zero-length matches. | Peter Stephenson | 2017-03-23 | 1 | -0/+10 |
| | | | | This time at the end of the trial string. | ||||
* | 22601: Fix for parameter substitution pattern matches. | Peter Stephenson | 2017-03-23 | 1 | -0/+10 |
| | | | | | It was not possible to math against a zero-length string in some cases. | ||||
* | Improve comment at top of GDBM test | Peter Stephenson | 2017-03-21 | 1 | -1/+3 |
| | |||||
* | 40816: Document interaction of 'print -P' and 'print -f'. | Daniel Shahaf | 2017-03-12 | 1 | -1/+9 |
| | |||||
* | 40820: add a few tests of strftime, related to 40681 | Jun-ichi Takimoto | 2017-03-12 | 1 | -2/+12 |
| | |||||
* | 40803, 40804, 40805, 40806: Parameter test additions. | Peter Stephenson | 2017-03-09 | 1 | -1/+13 |
| | | | | | | Potentially dodgy string for ${(z)...} splitting from Sebastian. Check that $- and ${-} produce plausible results. | ||||
* | 40706: Fix ordering dependence in gdbm test | Sebastian Gniazdowski | 2017-03-07 | 1 | -28/+46 |
| | |||||
* | 40760: Always tokenize unquoted - to Dash. | Peter Stephenson | 2017-03-07 | 1 | -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 assignment | Sebastian Gniazdowski | 2017-03-04 | 1 | -0/+66 |
| | |||||
* | 40173: No error on failure to load zsh/db/gdbm in test. | Peter Stephenson | 2017-03-03 | 1 | -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 Stephenson | 2017-03-01 | 1 | -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 commit | Sebastian Gniazdowski | 2017-03-01 | 1 | -0/+307 |
| | |||||
* | Revert 40626 which broke tests. | Daniel Shahaf | 2017-02-26 | 1 | -3/+0 |
| | |||||
* | 40626: Make $options re-settable. | Daniel Shahaf | 2017-02-25 | 1 | -0/+3 |
| | | | | | | Follow-up to 40508. Reported-by: James McGlashan | ||||
* | use "diff -a" in case special characters were written to the test output | Barton E. Schaefer | 2017-02-20 | 1 | -1/+1 |
| | |||||
* | 40565 (tweaked): test cases for assigning array to scalar with various ↵ | Barton E. Schaefer | 2017-02-20 | 1 | -0/+80 |
| | | | | combinations of SHWORDSPLIT and IFS | ||||
* | 40508: Make $functions re-settable. | Daniel Shahaf | 2017-02-08 | 1 | -0/+6 |
| | |||||
* | 40460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing ↵ | Daniel Shahaf | 2017-02-01 | 1 | -0/+4 |
| | | | | array | ||||
* | 40470: make the test work also with ASCII collation | Jun-ichi Takimoto | 2017-02-01 | 1 | -16/+14 |
| | | | | | a few OSs (macOS and some versions of BSDs) use ASCII collation even if UTF-8 locale is in use |