summary refs log tree commit diff
path: root/Test
Commit message (Collapse)AuthorAgeFilesLines
* 42164: fix digits in format escapes in completion listingsdana2018-01-041-0/+15
|
* 42156: new CHECK_RUNNING_JOBS option demanded by bash groupiesPeter Stephenson2017-12-221-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.
* dana: 42145: Fix additional completion cases with option arguments.dana2017-12-201-0/+21
|
* 42146: type -w += global aliasesDaniel Shahaf2017-12-201-0/+11
| | | | Follow-up to 36403, which did the same for suffix aliases.
* 42116: multibyte support for ZLE vi-mode word motionJun-ichi Takimoto2017-12-181-5/+24
|
* 42123 (tweaked): take account of Dash in function names.Peter Stephenson2017-12-151-0/+9
| | | | | | Needed when comparing word code function name with autoload request. Add test.
* add millisecond and microsecond options to TIMEFMT variabledana2017-12-141-0/+4
|
* 42110: Fix redirections between variable assignments at start of linePeter Stephenson2017-12-121-0/+7
|
* 42065: new getopts testsdana2017-12-011-0/+81
|
* 42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather ↵Daniel Shahaf2017-11-241-0/+20
| | | | than a syntax error.
* 41983: fix exclusion of long options with (-) on a normal argumentOliver Kiddle2017-11-041-1/+7
|
* 41902: ${(z)...} continues parsing on unmatched quote when CSH_JUNKIE_QUOTES ↵Barton E. Schaefer2017-10-171-0/+21
| | | | | | is set Tests for 41902 and 41873
* 41877: Separate out SH_FILE_EXPANSION loop from parameter substitution.Peter Stephenson2017-10-131-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.
* 41828, 41830: skip SHFILEEXPANSION for new nodes added by stringsubst() in ↵Barton E. Schaefer2017-10-081-0/+12
| | | | prefork()
* 41824: fix to not complete rest args from an _arguments set alongside the ↵Oliver Kiddle2017-10-071-0/+8
| | | | argument to and option in a separate set
* 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.Peter Stephenson2017-10-021-0/+8
| | | | Initialised from existing configuration value.
* Add typeset -p1, like typeset -p with newlinesPeter Stephenson2017-10-011-0/+26
|
* 41773: Array index assignment tests for KSH_ARRAYSPeter Stephenson2017-09-281-1/+66
|
* 41772: fix bug in handling of long options with _arguments' -A optionOliver Kiddle2017-09-281-0/+6
|
* 41764 (test tweaked): allow [key]+=value when modifying arraysPeter Stephenson2017-09-271-0/+34
|
* Updates for ksh array element syntax.Peter Stephenson2017-09-242-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.
* More [key]=value tweaksPeter Stephenson2017-09-142-1/+3
| | | | | | Some rephrasings. Update typeset -p for associative arrays to use new syntax.
* First go at var=([key]=value) syntax.Peter Stephenson2017-09-132-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.
* 41668: New --emulate option on invocation.Peter Stephenson2017-09-111-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 sanitisedPeter Stephenson2017-09-101-0/+6
|
* 41661: Need to remove tokens before using bufferwords() for (z)Peter Stephenson2017-09-101-0/+7
|
* 41641: Some math operations shouldn't be lvalues.Peter Stephenson2017-09-051-0/+13
| | | | | This includes pre- and post- increment and decrement. Simply mark all values after operations as rvalues.
* Fix problem with ERR_RETURN.Peter Stephenson2017-08-311-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 Stephenson2017-08-291-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 Stephenson2017-08-241-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 Stephenson2017-08-141-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 modulesPhil Pennock2017-08-111-0/+9
|
* 41504: make empty strings work in case patterns with no leading parenthesisPeter Stephenson2017-08-091-0/+37
|
* Revert "41499 (with one further tweak): POSIX_STRINGS behaviour."Peter Stephenson2017-08-081-41/+0
| | | | | | | This reverts commit 2eacbef91913fe967335812900d43cf2edfa54d9. Conflicts: ChangeLog
* 41499 (with one further tweak): POSIX_STRINGS behaviour.Peter Stephenson2017-08-071-0/+41
| | | | | Ignore a terminating delimiter when splitting as separators despite being called separators are terminators.
* 41485: test for previous fixPeter Stephenson2017-08-031-0/+5
|
* 41464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands.Peter Stephenson2017-07-271-0/+14
| | | | Document the default behaviour and add a test.
* 41420: "{.." wasn't check for brace expansion properlyPeter Stephenson2017-07-131-0/+4
|
* 22760: fix partial string length reports with NO_MULTIBYTEPeter Stephenson2017-07-021-0/+20
|
* 41308 (tweaked): behaviour of PCRE with NUL bytesPhil Pennock2017-06-221-0/+6
|
* 41284: Fix NULL dereference in cd.Peter Stephenson2017-06-131-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 outputPeter Stephenson2017-05-091-1/+1
|
* 40181: Fix buffer overrun in xsymlinks.Peter Stephenson2017-05-091-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 expansionPeter Stephenson2017-05-091-0/+4
|
* 40173: Off-by-one error checking for {varid}.Peter Stephenson2017-05-081-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 Stephenson2017-05-081-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 Stephenson2017-05-081-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 argumentsPeter Stephenson2017-04-281-1/+11
| | | | Also add tests for known precommand modifier issues.
* 41012: Fix premature exit from nested function in EXIT trap.Peter Stephenson2017-04-271-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 workPeter Stephenson2017-04-271-0/+6
|