Commits
- Commit:
8ed731583d64c7ce3914465b75388fbc40374cee- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Improve readme
- Commit:
b240709d3e2b978f99716e61b05fc40b3f06c2d9- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Update readme
Fixed program name in main header, improved and expanded some text,
fixed some inacurate specification details, fixed a typo, and improved
formatting.
- Commit:
fc2504a18b81a35a700dae09409dd003ba8d8d6d- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Bump version to 1.0.1
- Commit:
ffd126df6dd6821d2b2b02d847abab6638aca2c1- From:
- Benjamin Linskey <git@linskey.org>
- Date:
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.
- Commit:
c1fedee8569ed98979c36d4e0803cd61ff5504fa- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Remove a period from a comment header
- Commit:
b10392c52dc06489b65e638b8ca71771b763bf03- From:
- Benjamin Linskey <git@linskey.org>
- Date:
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>
- Commit:
653365c2366785a7fb3b012fe39dbd3ca9707606- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add version number
- Commit:
1cedfb65dc3a2a6428e7492ed61c2060a9844810- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add a note about regex metacharacter escaping
- Commit:
2aa8ed870cb212328563b8a300b3a3b6754ce4e6- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Rename command to "tpl"
- Commit:
17f146903eb94c930371a40a5f018520fe9a9f6b- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add header comment to script
- Commit:
e68c0e195916ee5d90a2d375433c433b456f80fa- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add license
- Commit:
51a5170e1cc01c6e2e9faf0ed64273094788fea4- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Make a pedantic change to example text
- Commit:
9e19dd2f89faf09d8b2fdc2926456d3de76738a2- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Improve readme
- Commit:
18ba901d929fc4496453d8ff8f1f652d156ef2b9- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add test script
- Commit:
a4ca4afc3ca9181e0c2acc283073549eb7627dea- From:
- Benjamin Linskey <git@linskey.org>
- Date:
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.
- Commit:
58b4a2282a2fbd6b0d9183fb654d4c735ec64258- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add readme and example files
- Commit:
c23b240bc382af4f97eb9cb9bada8b32180c341b- From:
- Benjamin Linskey <git@linskey.org>
- Date:
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 }}
- Commit:
0cd3a0bacd54eecf2a1339dd99120fc0c3280a88- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Improve variable-matching regex
- Commit:
41925025c47abb9b9d0538c4789975bf7c283ca4- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Make spaces in template vars optional
Template variables can now have zero or more whitespace characters
between the braces and the variable name.
- Commit:
1f47e0501d53883097718c569023461b0931c15a- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add script
