]> git.draconx.ca Git - dxcommon.git/commit
Explicitly test for empty strings in awk scripts.
authorNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 05:36:52 +0000 (00:36 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 06:07:52 +0000 (01:07 -0500)
commite0eee379d3bce3e3629175d4a214439da630c1ed
tree1f51035040e2b80d6b41ed9518f66acbbe59933b
parentda99716d86d4870be554d8412b41a751583da661
Explicitly test for empty strings in awk scripts.

ULTRIX 4.5 nawk does not treat arbitrary nonempty strings as "true"
in boolean contexts; they appear to be converted to integers and
compared against zero, which means most nonempty strings are false.
Easy enough to work around.
scripts/gen-options.awk
scripts/gen-strtab.awk
scripts/gen-tree.awk