aboutsummaryrefslogtreecommitdiff
path: root/tests/expansion/subscript.testscript
AgeCommit message (Collapse)AuthorFilesLines
2021-05-28Ban conversion of patterns to valuesBoris Kolpackov1-1/+1
Also improve conversion diagnostic.
2020-05-27Add support for value subscript after expansionsBoris Kolpackov1-0/+97
Value subscript is only recognized in evaluation contexts (due to ambiguity with wildcard patterns; consider: $x[123].txt) and should be unseparated from the previous token. For example: x = ($y[1]) x = (($f ? $y : $z)[1]) x = ($identity($y)[$z])