[tz] [PROPOSED 07/18] Do not use empty RE in tzselect
Paul Eggert
eggert at cs.ucla.edu
Tue Dec 19 07:25:56 UTC 2023
* tzselect.ksh (countries): Use /^/, not //, as a regular
expression that matches any line. POSIX does not allow empty REs,
and Solaris 10 nawk rejects them.
---
tzselect.ksh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tzselect.ksh b/tzselect.ksh
index 3efb39fd..27bddfe0 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -530,7 +530,7 @@ while
countries=`
say "$zone_table" |
$AWK \
- -v continent_re='' \
+ -v continent_re='^' \
-v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \
"$output_country_list" |
sort -f
--
2.40.1
More information about the tz
mailing list