awk: undo TI_PRINT, it introduced a bug (print with any redirect acting as printf)

function                                             old     new   delta
evaluate                                            3329    3337      +8

Patch by Ron Yorston <rmy@pobox.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2021-07-11 12:00:31 +02:00
parent 49c3ce64f0
commit 3d57a84907
2 changed files with 10 additions and 3 deletions

View File

@ -450,4 +450,9 @@ testing "awk exit N propagates through END's exit" \
"42\n" \
'' ''
testing "awk print + redirect" \
"awk 'BEGIN { print \"STDERR %s\" >\"/dev/stderr\" }' 2>&1" \
"STDERR %s\n" \
'' ''
exit $FAILCOUNT