summaryrefslogtreecommitdiff
path: root/Test
AgeCommit message (Collapse)AuthorFilesLines
2018-05-1342488: test cases for 42369 and address some issues in the codeOliver Kiddle3-2/+47
2018-05-1142101 (tweaked): assigning shell status to array was brokendana1-0/+35
2018-04-2947201: fix 42355 for multiple backslashesRicardo Giorni1-0/+24
2018-04-26c.f. 42726: Back off fg and bg tests.Peter Stephenson1-42/+0
This is too hard to make robust. Problems include - Reading input in different places causes lines to appear and disappear - There is no easy way to sequence the asynchronous operations following bg. - Response to job control of user commands on some OSes (MacOS, for example) is unpredicatble.
2018-04-2542722: Replace ed with dc in fg/bg tests.Peter Stephenson2-33/+26
This should be even simpler. Also more fix ups for failed pattern diffs.
2018-04-2542714: Add fg and bg tests.Peter Stephenson2-6/+83
Use ed to get minimal user interaction without needing advanced terminal handling. Improve test output of failures of pattern differences.
2018-04-2442708: fix for process substitution.Peter Stephenson1-0/+7
Don't close associated file descriptors in the closem() tidy up function as they should remain visible to external processes. Override if about to exit. Unit test for the failing case: note this relies on the existence of /proc/self/fd or equivalent.
2018-04-1242624 (plus test): avoid freeing memory that's still neededOliver Kiddle1-0/+10
This was occurring in a multiple function definition where a function name is duplicated.
2018-04-0542575: fix to not complete options in the argument to another optionOliver Kiddle1-0/+15
2018-04-0442581(?): Fix ZLE inline history expansion.Peter Stephenson1-0/+17
Seen with magic-space. If there's a parse error in command subtitution we need to complete reading history to ensure the command line buffer is finished.
2018-03-2742538: Temporarily set umask for here document.Martijn Dekker1-0/+9
Done while signals are queued.
2018-02-1242355: Fix use of backslashes on here doc input.Peter Stephenson1-4/+42
Handling of white space in particular was confusing and inconsistent with other shells.
2018-01-0442164: fix digits in format escapes in completion listingsdana1-0/+15
2017-12-2242156: new CHECK_RUNNING_JOBS option demanded by bash groupiesPeter Stephenson1-0/+186
Also new job options. Also suppress debug error if rows or columns are reported as zero as this is normal without a physical terminal.
2017-12-20dana: 42145: Fix additional completion cases with option arguments.dana1-0/+21
2017-12-2042146: type -w += global aliasesDaniel Shahaf1-0/+11
Follow-up to 36403, which did the same for suffix aliases.
2017-12-1842116: multibyte support for ZLE vi-mode word motionJun-ichi Takimoto1-5/+24
2017-12-1542123 (tweaked): take account of Dash in function names.Peter Stephenson1-0/+9
Needed when comparing word code function name with autoload request. Add test.
2017-12-14add millisecond and microsecond options to TIMEFMT variabledana1-0/+4
2017-12-1242110: Fix redirections between variable assignments at start of linePeter Stephenson1-0/+7
2017-12-0142065: new getopts testsdana1-0/+81
2017-11-2442031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather ↵Daniel Shahaf1-0/+20
than a syntax error.
2017-11-0441983: fix exclusion of long options with (-) on a normal argumentOliver Kiddle1-1/+7
2017-10-1741902: ${(z)...} continues parsing on unmatched quote when CSH_JUNKIE_QUOTES ↵Barton E. Schaefer1-0/+21
is set Tests for 41902 and 41873
2017-10-1341877: Separate out SH_FILE_EXPANSION loop from parameter substitution.Peter Stephenson1-0/+10
Parameter substitution can add nodes that need to be rescanned by it, but not by file expansion, so the two don't play well together.
2017-10-0841828, 41830: skip SHFILEEXPANSION for new nodes added by stringsubst() in ↵Barton E. Schaefer1-0/+12
prefork()
2017-10-0741824: fix to not complete rest args from an _arguments set alongside the ↵Oliver Kiddle1-0/+8
argument to and option in a separate set
2017-10-0241787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.Peter Stephenson1-0/+8
Initialised from existing configuration value.
2017-10-01Add typeset -p1, like typeset -p with newlinesPeter Stephenson1-0/+26
2017-09-2841773: Array index assignment tests for KSH_ARRAYSPeter Stephenson1-1/+66
2017-09-2841772: fix bug in handling of long options with _arguments' -A optionOliver Kiddle1-0/+6
2017-09-2741764 (test tweaked): allow [key]+=value when modifying arraysPeter Stephenson1-0/+34
2017-09-24Updates for ksh array element syntax.Peter Stephenson2-0/+42
Move detection of key/value pairs down into prefork(). Detect normal array assignment and [key]=val array assignemnt separately. Mark key / value pairs with Marker and pass up flag. Deal with marked triads specially later on.
2017-09-14More [key]=value tweaksPeter Stephenson2-1/+3
Some rephrasings. Update typeset -p for associative arrays to use new syntax.
2017-09-13First go at var=([key]=value) syntax.Peter Stephenson2-0/+123
Works for both normal and typeset case, also var+=... Still to do: allow to be mixed with straight array assignment, improve typeset -p, implement [key]+=value.
2017-09-1141668: New --emulate option on invocation.Peter Stephenson1-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.
2017-09-1041662: exec -a arguments weren't sanitisedPeter Stephenson1-0/+6
2017-09-1041661: Need to remove tokens before using bufferwords() for (z)Peter Stephenson1-0/+7
2017-09-0541641: Some math operations shouldn't be lvalues.Peter Stephenson1-0/+13
This includes pre- and post- increment and decrement. Simply mark all values after operations as rvalues.
2017-08-31Fix problem with ERR_RETURN.Peter Stephenson1-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.
2017-08-2941608 (plus tests): restore ERR_EXIT before function.Peter Stephenson1-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.
2017-08-2441590 modified as 41595: make ERR_RETURN more logical.Peter Stephenson1-0/+30
It now operates separately at each function depth. To keep ERR_EXIT global, make the noerrexit variable usd bit flags. Extend tests.
2017-08-1441542: Fix pcre logic for extracting matched parentheses.Peter Stephenson1-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.
2017-08-1141527 (tweaked for heap memory): fix [[ -<cond> ]] from modulesPhil Pennock1-0/+9
2017-08-0941504: make empty strings work in case patterns with no leading parenthesisPeter Stephenson1-0/+37
2017-08-08Revert "41499 (with one further tweak): POSIX_STRINGS behaviour."Peter Stephenson1-41/+0
This reverts commit 2eacbef91913fe967335812900d43cf2edfa54d9. Conflicts: ChangeLog
2017-08-0741499 (with one further tweak): POSIX_STRINGS behaviour.Peter Stephenson1-0/+41
Ignore a terminating delimiter when splitting as separators despite being called separators are terminators.
2017-08-0341485: test for previous fixPeter Stephenson1-0/+5
2017-07-2741464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands.Peter Stephenson1-0/+14
Document the default behaviour and add a test.
2017-07-1341420: "{.." wasn't check for brace expansion properlyPeter Stephenson1-0/+4