From f5b2d65337c81ef3b58f376d2128a6ab8f1ccaf4 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Tue, 12 Apr 2022 15:59:12 +0900 Subject: 50017: allow lowercase to match with uppercase in timezone name --- ChangeLog | 5 +++++ Completion/Unix/Type/_time_zone | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e83c46afc..d46d8aa8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-04-12 Jun-ichi Takimoto + + * 50017: Completion/Unix/Type/_time_zone: allow lowercase to + match with uppercase + 2022-04-11 Bart Schaefer * 50043: Test/D02glob.ztst, Test/E03posix.ztst: for root user, diff --git a/Completion/Unix/Type/_time_zone b/Completion/Unix/Type/_time_zone index c437252a8..a7b63adcd 100644 --- a/Completion/Unix/Type/_time_zone +++ b/Completion/Unix/Type/_time_zone @@ -6,4 +6,5 @@ if (( ! $+_zoneinfo_dirs )); then _zoneinfo_dirs=( /usr/{share,lib,share/lib}/{zoneinfo*,locale/TZ}(/) ) fi -_wanted time-zones expl 'time zone' _files -g '[A-Z]*' -W _zoneinfo_dirs "$@" - +_wanted time-zones expl 'time zone' \ + _files -g '[A-Z]*' -M 'm:{a-z}={A-Z}' -W _zoneinfo_dirs "$@" - -- cgit 1.4.1