From: Nick Bowler Date: Tue, 2 Jan 2024 04:24:22 +0000 (-0500) Subject: help_print_optstring: Fix NLS test on AIX. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/0393949d8c4e33ec7e0beb629eaa9858204c6ec7 help_print_optstring: Fix NLS test on AIX. AIX 7.2 awk does not support "-" as an argument to the -f option to mean "read from standard input", contrary to POSIX. Easy enough to work around. --- diff --git a/tests/functions.at b/tests/functions.at index 4a9aeb5..01a96a7 100644 --- a/tests/functions.at +++ b/tests/functions.at @@ -1,4 +1,4 @@ -dnl Copyright © 2015, 2021-2023 Nick Bowler +dnl Copyright © 2015, 2021-2024 Nick Bowler dnl dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2. dnl This is free software: you are free to do what the fuck you want to. @@ -157,8 +157,7 @@ TEST_UTF8_LOCALE([locale_utf8]) # Avoid some deficient shell parsers barfing on UTF-8 sequences by # generating them this way using octal escapes. -$AWK -f - >expout <<'EOF' -BEGIN { +$AWK 'BEGIN { zenkaku = "--\345\205\250\350\247\222"; hankaku = "--\357\276\212\357\276\235\357\275\266\357\275\270" @@ -166,8 +165,7 @@ BEGIN { print " " zenkaku "\t" "7" print " " hankaku "\t" "7" -} -EOF +}' >expout