Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: complete value of $TZ



Borsenkow Andrej wrote:
> 
> > -if (( ! $+_zoneinfo_dirs )); then
> > -  _zoneinfo_dirs=( /usr/{share,lib,share/lib}/zoneinfo*(/) )
> > -fi
> 
> add /usr/lib/locale/TZ plese

Okay. That was an existing part of _zdump so I didn't question it.

Is the patch below right or is it something slightly different? If not,
please just commit whatever you think is right.

Cheers

Oliver

Index: Completion/Unix/Type/_time_zone
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_time_zone,v
retrieving revision 1.1
diff -u -r1.1 _time_zone
--- Completion/Unix/Type/_time_zone     2001/10/26 13:05:46     1.1
+++ Completion/Unix/Type/_time_zone     2001/10/26 13:26:09
@@ -3,7 +3,7 @@
 local expl
 
 if (( ! $+_zoneinfo_dirs )); then
-  _zoneinfo_dirs=( /usr/{share,lib,share/lib}/zoneinfo*(/) )
+  _zoneinfo_dirs=( /usr/{share,lib,share/lib}/{zoneinfo*,locale/TZ}(/)
)
 fi
 
 _wanted timezone expl 'time zone' _files -W _zoneinfo_dirs

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp



Messages sorted by: Reverse Date, Date, Thread, Author