aboutsummaryrefslogtreecommitdiff
path: root/tests/expansion
AgeCommit message (Collapse)AuthorFilesLines
2022-12-15Improve escape sequence supportBoris Kolpackov1-0/+17
Specifically: 1. In the double-quoted strings we now only do effective escaping of the special `$("\` characters plus `)` for symmetry. 2. There is now support for "escape sequence expansion" in the form $\X where \X can be any of the C/C++ simple escape sequences (\n, \t, etc) plus \0 (which in C/C++ is an octal escape sequence). For example: info "foo$\n$\tbar$\n$\tbaz" Will print: buildfile:1:1: info: foo bar baz
2021-05-28Ban conversion of patterns to valuesBoris Kolpackov1-1/+1
Also improve conversion diagnostic.
2020-05-27Add support for value subscript after expansionsBoris Kolpackov2-1/+98
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])
2020-02-07Drop copyright notice from source codeKaren Arutyunov3-3/+0
2019-01-16Update copyright yearKaren Arutyunov3-3/+3
2018-09-04Rename .test/test{} to .testscript/testscript{}Boris Kolpackov3-5/+5
2018-08-09Fix test failures on WindowsBoris Kolpackov1-2/+2
2018-08-09Handle few corner cases in concatenated expansionBoris Kolpackov1-0/+28
2018-05-19Update copyright yearKaren Arutyunov2-2/+2
2017-07-12Make use of wildcards in buildfilesKaren Arutyunov1-1/+1
2017-01-05Update copyright yearBoris Kolpackov2-2/+2
2016-12-16Convert tests/ to subproject, initial work on cross-testing supportBoris Kolpackov1-1/+1
2016-12-01Organize tests/, factor common testscript fragmentsBoris Kolpackov3-15/+2
2016-12-01Allow implicit (lexical) typed-to-typed conversionBoris Kolpackov1-6/+3
2016-11-25Implement literal here-document supportBoris Kolpackov1-8/+8
2016-11-23Implement value type propagation on expansionBoris Kolpackov3-0/+71
Currently, we only propagate types of sole, unquoted expansions (variable, function call, or eval context), similar to NULL. To untypify the value, simply quote it.