[tz] [PROPOSED 05/18] Improve tzselect diagnostics after rejection

Paul Eggert eggert at cs.ucla.edu
Tue Dec 19 07:25:54 UTC 2023


* tzselect.ksh (handle_entry): Initialize country_result and time
each time through the loop, so that proper diagnostics are used
even when they are set in the environment or the user rejected
the first setting.
---
 tzselect.ksh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tzselect.ksh b/tzselect.ksh
index e85259b2..19dcd43e 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -357,7 +357,9 @@ while
 
 	continent=
 	country=
+	country_result=
 	region=
+	time=
 
 	case $coord in
 	?*)
-- 
2.40.1




More information about the tz mailing list