aboutsummaryrefslogtreecommitdiff
path: root/timezone/tzselect.ksh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-01 16:09:12 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-01 16:09:12 +0000
commita7123f0edfea20a68e64e447dc6ca0c32736be0e (patch)
tree4c9b8434f534faa5a8330f250c8ec296a123818c /timezone/tzselect.ksh
parent9133b79b4fae126bbcd95dad6f2cac68329c8ff3 (diff)
downloadglibc-a7123f0edfea20a68e64e447dc6ca0c32736be0e.zip
glibc-a7123f0edfea20a68e64e447dc6ca0c32736be0e.tar.gz
glibc-a7123f0edfea20a68e64e447dc6ca0c32736be0e.tar.bz2
Update.
1999-10-01 Andreas Jaeger <aj@suse.de> * locale/programs/ld-collate.c (insert_value): Add cast to avoid warning. * intl/finddomain.c (_nl_find_domain): Likewise. 1999-09-30 Andreas Schwab <schwab@suse.de> * sysdeps/unix/sysv/linux/alpha/ioperm.c: Disable debug messages. 1999-09-30 Andreas Jaeger <aj@suse.de> * sysdeps/i386/lshift.S: Correct assembler commands to fix warnings. * sysdeps/i386/rshift.S: Likewise. * sysdeps/i386/strchrnul.S: Likewise. * sysdeps/i386/strchr.S: Likewise. Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>, PR libc/1339. 1999-09-30 Andreas Jaeger <aj@suse.de> * manual/examples/pipe.c: Close other end of pipe to make example work. 1999-10-01 Ulrich Drepper <drepper@cygnus.com> * timezone/checktab.awk: Update from tzcode1999g. * timezone/tzselect.ksh: Likewise. * timezone/africa: Update from tzdata1999g. * timezone/asia: Likewise. * timezone/australasia: Likewise. * timezone/europe: Likewise. * timezone/northamerica: Likewise. * timezone/southamerica: Likewise. * timezone/iso3166.tab: Likewise. * timezone/zone.tab: Likewise. been renamed to getipnodebyname. Move flags around.
Diffstat (limited to 'timezone/tzselect.ksh')
-rw-r--r--timezone/tzselect.ksh17
1 files changed, 16 insertions, 1 deletions
diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh
index 010a0de..be58924 100644
--- a/timezone/tzselect.ksh
+++ b/timezone/tzselect.ksh
@@ -1,4 +1,7 @@
#! @KSH@
+
+# '@(#)tzselect.ksh 1.7'
+
# Ask the user about the time zone, and output the resulting TZ value to stdout.
# Interact with the user via stderr and stdin.
@@ -289,5 +292,17 @@ Universal Time is now: $UTdate."
do :
done
-# Output the answer.
+case $SHELL in
+*csh) file=.login line="setenv TZ '$TZ'";;
+*) file=.profile line="TZ='$TZ'; export TZ"
+esac
+
+echo >&2 "
+You can make this change permanent for yourself by appending the line
+ $line
+to the file '$file' in your home directory; then log out and log in again.
+
+Here is that TZ value again, this time on standard output so that you
+can use the $0 command in shell scripts:"
+
echo "$TZ"