Commit Briefs

8ed731583d Benjamin Linskey

Improve readme (main)


b240709d3e Benjamin Linskey

Update readme

Fixed program name in main header, improved and expanded some text, fixed some inacurate specification details, fixed a typo, and improved formatting.


fc2504a18b Benjamin Linskey

Bump version to 1.0.1 (tags/v1.0.1)


ffd126df6d Benjamin Linskey

Improve variable substitution efficiency

If a value in the variables file contains multiple instances of the same variable, they will all be replaced in a single function call, eliminating the need to loop over the same block of code multiple times.


c1fedee856 Benjamin Linskey

Remove a period from a comment header


b10392c52d Benjamin Linskey

Fix brace escaping in regexes

The POSIX extended regular expression spec requires that the left brace character be escaped when it appears outside of an interval expression. The results are undefined if the brace is not escaped.[^1] The ERE spec permits right braces to be escaped, though this isn't required.[^2] But the standard ERE escaping rules are superseded in the POSIX awk specification. The awk spec does not specify a right brace escape sequence, so the meaning of an escaped right brace is undefined.[^3] We have a number of escaped right braces and one instance of a string variable containing unescaped left braces being passed to a function as a regex. These don't cause any problems in practice, but to ensure maximum portability and pedantry, we bring everything into strict compliance with the spec here. [^1]: POSIX.1-2024 XBD 9.4.3: <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_04_03> [^2]: POSIX.1-2024 XBD 9.4.2: <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_04_02> [^3]: POSIX.1-2024 awk: <https://pubs.opengroup.org/onlinepubs/9799919799/utilities/awk.html#tag_20_06_13_04>


653365c236 Benjamin Linskey

Add version number


1cedfb65dc Benjamin Linskey

Add a note about regex metacharacter escaping


2aa8ed870c Benjamin Linskey

Rename command to "tpl"


17f146903e Benjamin Linskey

Add header comment to script


e68c0e1959 Benjamin Linskey

Add license


51a5170e1c Benjamin Linskey

Make a pedantic change to example text


9e19dd2f89 Benjamin Linskey

Improve readme


18ba901d92 Benjamin Linskey

Add test script


a4ca4afc3c Benjamin Linskey

Improve handling of var references in vars file

Previously, if a previously defined variable was used as a value in a variable assignment, it had to stand alone. This change allows variables to be freely intermixed with text and multiple variables to be used in a single assignment.


58b4a2282a Benjamin Linskey

Add readme and example files


c23b240bc3 Benjamin Linskey

Allow vars to reference vars defined earlier

The template variable syntax can be used when defining a variable to reference the value of a previously defined variable: foo = bar baz = {{ foo }}


0cd3a0bacd Benjamin Linskey

Improve variable-matching regex


41925025c4 Benjamin Linskey

Make spaces in template vars optional

Template variables can now have zero or more whitespace characters between the braces and the variable name.


1f47e0501d Benjamin Linskey

Add script