#! /bin/bash

# '@(#)tzselect.ksh	1.8'

# Ask the user about the time zone, and output the resulting TZ value to stdout.
# Interact with the user via stderr and stdin.

# Contributed by Paul Eggert.

# Porting notes:
#
# This script requires several features of the Korn shell.
# If your host lacks the Korn shell,
# you can use either of the following free programs instead:
#
#	<a href=ftp://ftp.gnu.org/pub/gnu/>
#	Bourne-Again shell (bash)
#	</a>
#
#	<a href=ftp://ftp.cs.mun.ca/pub/pdksh/pdksh.tar.gz>
#	Public domain ksh
#	</a>
#
# This script also uses several features of modern awk programs.
# If your host lacks awk, or has an old awk that does not conform to Posix.2,
# you can use either of the following free programs instead:
#
#	<a href=ftp://ftp.gnu.org/pub/gnu/>
#	GNU awk (gawk)
#	</a>
#
#	<a href=ftp://ftp.whidbey.net/pub/brennan/>
#	mawk
#	</a>


# Specify default values for environment variables if they are unset.
: ${AWK=awk}
: ${TZDIR=/usr/share/zoneinfo}

# Check for awk Posix compliance.
($AWK -v x<                                  ii
        ii
        ii
         W    '   (  $,                    	  $
  (  ,  0
  4  8  <  @  D  H  L  P  T  X  \  `  d  h  l  p  t  x   |!  "  #  $  %  &  )  *  -  .  /  0  1  2  3  4  5  6  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E   F  G  H  I  K  L  M  N   O  $P  (Q  ,S  0T  4U  8V  <W  UE    G"   5%    % h    %h   %h   %h   %h    %h(   %h0   %h8   p% h@   `%$hH   P%(hP   @%,hX   0%0h`    %4hh   %8hp    %<hx   %@h   %Dh   %Hh   %Lh   %Ph   %Th   %Xh   %\h   p%`h   `%dh   P%hh   @%lh   0%ph    %th   %xh    %|h   %h   %h  %h  %h  %h   %h(  %h0  %h8  p%h@  `%hH  P%hP  @%hX  0%h`   %hh  %hp   %hx  %h  %h  %h  %h  %h  %h  %h  %h  p%h  `%h  P%h  @%h  0%h   %h  %h   %h  % h   %h  %h  %h  %h   %h(  %h0  %h8  p% h@  `%$hH  P%(hP  @%,hX  0%0h`   %4hh  %8hp   %<hx      1^PTRhhQVhPUS    [Ä9  tX[ÐU=( tHҡHu(ÐU$t    t	$$ÐUpSÃ@tptL$T$$ȳTC   D$$ϳ8C   D$$ϳC   D$$ϳ C   D$$ϳC  D$$ϳC   D$$ϳC 4  D$$Գ[]ËB;B'   :@BC9'    B;B}   :@BC't& '    B;B7   :@BCt& '    B;B    :@BCt& '    B;B    :@BCt& '    B;Bsi :@BC 
B;Bs# 
@B[]ø:   D$$
   D$$j:   L$$Tc:   D$$>1:   D$$(:   D$$:   D$$t& '    UWVSu} t=~_1E    
C9t$VuC9E   uE[^_]
&    uE    E[^_]É'    UWVS@fVD$$ٳT$D$FtP1ۿ   &    '    B;BsJ  @BD$F$FuŋB;Bs" 
@B[^_]ù    L$$몸
   D$$҉UWVS}       1E    EFt& 1D$
   D$1D$$_ft$$ltTG9}v tS/   D$E$t
  FMMDPut$$huG9}E   uE[^_]$    KuWE    E[^_]É'    UV1SÃ@ȉ$$D$D$
CRB;Bsg  @BD$C$LCTtB;BsC ,@BC0uB;Bs7 
@B[^]ù    L$$덹,   L$$C뱸
   D$$뽍t& '    UWVS} t{   1E    .&    $   T$$Ct(C9t*EDPuǉ${uC9E   u֋E[^_]$    t    kuE    E[^_]É'    UWVS} uG   h|$   t$$\$D$ $[^_]   11   F9utߋU$tU$D$BEptËEptEt\$L$T$$ED$UET$$uB;Bs 
@BW15
   L$$:v UWVSD@    E   D$F.   T$UƉT$$}$T$D$F tM1ۿ   t& '    B;Bsa  @BD$F$FuŋB;Bs9 
@BUFUID[^_]ø    D$$듸
   D$$뻍t& '    UWVS } }      1ۍuE    /    
   D$   D$4$tbC9]tdt$$
   D$lt$$   D$Q~q   D$   D$4$#uv C9]E   uE [^_]$    t& uE    E [^_]ø
   D$$2   L$$|t& '    U$  } ]u}uV   h|$t$$!\$D$ $l   ]u}]   11"$t$$D$`G9}tU$t*D$$>t   뽐UT$U$uًE]4y1G        UWVSÁ   ɉMu>$    h&    guE    EĈ   [^_]ÍE   |1|E    E~˃*U]E    t& E   EE9EtU1MT$UL$M|$$euŋEuM   &    G.   L$ML$$D$Jt$\$$3D$ttG"tB)t8/t.D$   E܉\$]܉t$$v '    GptƋWVGQE$t& '    U   EME
   ]4t& U1҉EME   ]&    U1҉EME1]v '    UBS]D$D$HD$$_   L$D