[tz] [PROPOSED PATCH] tzselect: port to POSIX sh and fix a typo
Paul Eggert
eggert at cs.ucla.edu
Wed May 27 17:12:36 UTC 2015
* tzselect.ksh: Use portable names for trap signals.
Also, fix a typo: signal 2 (INT) was meant, not signal 12.
---
tzselect.ksh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tzselect.ksh b/tzselect.ksh
index 2a622f5..2c3b2f4 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -191,7 +191,7 @@ done
tmp=${TMPDIR-/tmp}/tzselect.$$ &&
(umask 77 && mkdir -- "$tmp")
};} &&
- trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 1 12 13 15 &&
+ trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 HUP INT PIPE TERM &&
(iconv -f UTF-8 -t //TRANSLIT <"$TZ_COUNTRY_TABLE" >$tmp/iso3166.tab) \
2>/dev/null &&
TZ_COUNTRY_TABLE=$tmp/iso3166.tab &&
--
2.1.4
More information about the tz
mailing list