summaryrefslogtreecommitdiff
path: root/Test/D04parameter.ztst
AgeCommit message (Collapse)AuthorFilesLines
2019-12-1245001: Fix zero-length matches with ${...%...}Peter Stephenson1-0/+23
As the shortest match is preferred, zero-length matches beat any other.
2019-08-1444664: Fix problem with temporary assignment.Peter Stephenson1-0/+12
"foo=bar builtin" inside a function lost any variable from enclosing scope.
2019-06-2044435: Handling digita arguments for :h and :t.Peter Stephenson1-0/+77
Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments.
2018-12-30unposted: test for 43938Peter Stephenson1-0/+8
2018-11-2143837 plus test from Daniel: Empty string in nested subst.Peter Stephenson1-0/+7
Skip Nularg or there is a bogus character at the start.
2018-08-0943264: fix ${+assoc[nonexistent]} with KSH_ARRAYSPeter Stephenson1-0/+8
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-09-2841773: Array index assignment tests for KSH_ARRAYSPeter Stephenson1-1/+66
2017-09-2741764 (test tweaked): allow [key]+=value when modifying arraysPeter Stephenson1-0/+34
2017-09-24Updates for ksh array element syntax.Peter Stephenson1-0/+27
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-13First go at var=([key]=value) syntax.Peter Stephenson1-0/+68
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-1041661: Need to remove tokens before using bufferwords() for (z)Peter Stephenson1-0/+7
2017-07-0222760: fix partial string length reports with NO_MULTIBYTEPeter Stephenson1-0/+20
2017-03-3040909: Stress test for parameter substitutionSebastian Gniazdowski1-0/+12
2017-03-2340891: fix more zero-length matches.Peter Stephenson1-0/+10
This time at the end of the trial string.
2017-03-2322601: Fix for parameter substitution pattern matches.Peter Stephenson1-0/+10
It was not possible to math against a zero-length string in some cases.
2017-03-0940803, 40804, 40805, 40806: Parameter test additions.Peter Stephenson1-1/+13
Potentially dodgy string for ${(z)...} splitting from Sebastian. Check that $- and ${-} produce plausible results.
2017-02-2040565 (tweaked): test cases for assigning array to scalar with various ↵Barton E. Schaefer1-0/+80
combinations of SHWORDSPLIT and IFS
2016-12-0440088: atttempt to make interactive param test more robustPeter Stephenson1-3/+4
2016-12-03unposted: regression test for 40071Barton E. Schaefer1-0/+6
2016-11-1539947: Additional test for array subscripts.Peter Stephenson1-0/+8
This checks out-of-range multiple subscripts with and without the (@) flag.
2016-11-0339815: Read input to end on parse error in $(...) inside a string.Peter Stephenson1-0/+8
This allows ${(z)} to output the whole string, although we can't do word splitting from the error onwards.
2016-09-14zsh-users/21903: Fix ${...?...} in interactive shell.Peter Stephenson1-0/+14
On failure should abort back to top level, but we reset the error flag around commands. Add a hard error flag that's only reset at top level.
2016-09-09unposted: Add tests for ${(q)} being aware of the EQUALS option.Daniel Shahaf1-0/+4
2016-08-3139141: Use zsh instead of sh in SHLVL test.Peter Stephenson1-12/+14
This removes ambiguous behaviour of sh which may or may not increment SHLVL.
2016-08-3139125: More care needed decrementing SHLVL on exec.Stephane Chazelas1-0/+18
Not needed in subshell.
2016-08-2939115: repair forced joining when (@) and (j) are used togetherBarton E. Schaefer1-0/+9
2016-08-1239035: ${(A)name=word} should expand as an array even when there is only one ↵Barton E. Schaefer1-0/+5
element.
2016-08-1239028: more join/split cases fixed and tested.Barton E. Schaefer1-2/+8
2016-08-1139019 (cf. PWS 39013): add test cases for more join/split combinationsBarton E. Schaefer1-0/+55
Accidentally omitted from previous commit.
2016-01-2937752: More tests for the previous patch.Daniel Shahaf1-0/+18
2016-01-2937700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax.Daniel Shahaf1-0/+16
2016-01-2037705: don't turn - to Dash after start of brace parameterPeter Stephenson1-0/+6
2015-12-0837348: Tests and fix for ${(q+)...}.Peter Stephenson1-0/+14
Needs dupstring() for empty string case.
2015-12-0737344: restore old printable quoting, add ${(q+)...}.Peter Stephenson1-1/+1
The \C- form is only used inside quotedzputs(). ${(q+)...} outputs a quotedzputs() representation.
2015-12-0737335: fix tests after 34314Peter Stephenson1-2/+2
2015-11-2020974: Bug with scalar assignment to special array in typesetPeter Stephenson1-0/+19
2015-11-1237096: Another $${(P)...} tweak.Peter Stephenson1-1/+1
Make a top level (P) work with nested ones, i.e. ${(P)${(P)...}...}
2015-11-1137094: Further tweaks to parameter name references.Peter Stephenson1-0/+49
Safety in array test. Make nested references work. Add parameter tests.
2015-11-0737074: extend previous fix to over whitespace at endPeter Stephenson1-32/+32
2015-11-0637073: another SH_WORD_SPLIT problem.Peter Stephenson1-0/+54
In cases like x${:- y} the space was simply removed instead of being used for splitting.
2015-10-2736982: Fix bug with (#cN) patterns and remove redundant description.Peter Stephenson1-0/+9
We need to restore the current count of matches when returning to match at the point where we previously matched.
2015-09-28unposted: Test for 36669Daniel Shahaf1-0/+6
2015-09-1736552 plus test: fix Nularg string in quotestring(QT_DOLLARS)Barton E. Schaefer1-0/+4
2015-08-09Fix retying variables in opposite order.Peter Stephenson1-0/+5
Now gives an error. Add test.
2015-07-0635694: fix handling of history modifiers applied across all elements of an ↵Barton E. Schaefer1-0/+9
array parameter value
2015-05-3135343: Avoid $#name length handling for POSIX_IDENTIFIERSPeter Stephenson1-3/+6
2015-05-2935326: $#- was misparsed as ${#-}Peter Stephenson1-0/+5
2015-05-1135078: Add backslash quoting to parameter (b) flag from 35067.Peter Stephenson1-1/+1
2015-05-1035067: Add (b) parameter flag for pattern char backslashing.Peter Stephenson1-0/+4
Doc tweak from Daniel in 35071. Includes test.