[tz] [PATCH 1/4] Simplify tzselect by omitting old Bash workaround

Paul Eggert eggert at cs.ucla.edu
Mon Dec 13 19:03:49 UTC 2021


* tzselect.ksh (doselect): Omit Bash 1.14.7 workaround that I
wrote in September 1996, as Bash 1.14.7 hasn’t been supported for
years and surely should not be used anyway for security reasons.
Bash 2.0 came out in December 1996.
---
 tzselect.ksh | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/tzselect.ksh b/tzselect.ksh
index 18fce27..832cf75 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -101,14 +101,6 @@ then
 	esac
       done || exit
     }
-
-    # Work around a bug in bash 1.14.7 and earlier, where $PS3 is sent to stdout.
-    case $BASH_VERSION in
-    [01].*)
-      case `echo 1 | (select x in x; do break; done) 2>/dev/null` in
-      ?*) PS3=
-      esac
-    esac
   '
 else
   doselect() {
-- 
2.32.0



More information about the tz mailing list