miller/test/cases/dsl-format
John Kerl 1004ba5097
DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160)
Plain {} placeholders consume arguments sequentially as before; {N}
refers to the Nth argument (1-based) and may be used to repeat and/or
reorder arguments, e.g. format("{1}/{2}/{1}_{3}.ext", $p1, $p2, $p3).
Mixing is allowed: the {} sequence counter is independent of positional
placeholders (as in Rust format!). Out-of-range indices interpolate the
empty string, consistent with existing too-few-arguments behavior; {0}
is an error value since indices are 1-based.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 15:15:33 -04:00
..
0001 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0002 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0003 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0004 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0005 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0006 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0007 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0008 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0009 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0010 New format DSL function (#869) 2022-01-12 22:40:59 -05:00
0011 DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160) 2026-07-06 15:15:33 -04:00
0012 DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160) 2026-07-06 15:15:33 -04:00
0013 DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160) 2026-07-06 15:15:33 -04:00
0014 DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160) 2026-07-06 15:15:33 -04:00
0015 DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160) 2026-07-06 15:15:33 -04:00
0016 DSL format function: support 1-based positional placeholders like {1} (#1650) (#2160) 2026-07-06 15:15:33 -04:00