summaryrefslogtreecommitdiff
path: root/Test/D04parameter.ztst
AgeCommit message (Collapse)AuthorFilesLines
2023-09-1352122 + 52129: fix (#) parameter expansion flagJun-ichi Takimoto1-0/+40
Without the X flag, null string "" is substituted for bad math expression.
2023-06-2651884: reset IFS if it contains invalid charactersJun-ichi Takimoto1-0/+21
This happens only if MULTIBYTE option is on.
2023-06-0651816: add :S history modifier with pattern matchPeter Stephenson1-0/+10
2023-02-0651350: ${(S)...//#%...} didn't match the whole stringPeter Stephenson1-0/+7
2023-02-0251306: error message in ${unset?error} should be expandedPeter Stephenson1-0/+5
2023-01-27unposted (cribbed from users/28784 by Roman): Add XFail tests for ↵Daniel Shahaf1-0/+15
substituting a single-quoting backslash.
2022-03-2949853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bashJun-ichi Takimoto1-0/+32
2021-07-1949166: fix coredump in ${name:offset:length} with ill-formatted lengthJun-ichi Takimoto1-4/+3
2021-04-0848379: Make the parameter expansion subscript flags parse error message, ↵Daniel Shahaf1-0/+5
"error in flags", identify the location of the parse error.
2020-07-03users/24971: ${(-)var} sorts on signed integersPeter Stephenson1-0/+7
2020-05-2345900: Fix issues with escaped newline in $-substitution.Peter Stephenson1-3/+21
2020-05-2045862: Add test cases for 45843#1 and 45843#2, adapted from Aaron Esau and pws.Daniel Shahaf1-0/+10
2020-05-12unposted: Add tests for previous commitMikael Magnusson1-1/+7
2020-01-0945269: Fix misspellings in completions and elsewhere.Jens Schleusener1-1/+1
2020-01-0245181: Fix workers/45164: ${(S)%%} will now consider the empty string as a ↵Daniel Shahaf1-1/+1
potential match.
2020-01-01unposted: Add some tests for ${(S)}, including a regression test for ↵Daniel Shahaf1-0/+25
workers/45164.
2019-12-31users/24582 + users/24583: Add regression tests for the previous commit.Daniel Shahaf1-0/+68
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