/etc/zsh/zshenv: fix sourcing of /etc/timezone 0.2.33
authorMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 11:51:52 +0000 (12:51 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 11:51:52 +0000 (12:51 +0100)
debian/changelog
etc/zsh/zshenv

index 36cdef0..74e4335 100644 (file)
@@ -1,3 +1,9 @@
+grml-etc-core (0.2.33) unstable; urgency=low
+
+  * /etc/zsh/zshenv: fix sourcing of /etc/timezone
+
+ -- Michael Prokop <mika@grml.org>  Sat, 17 Mar 2007 12:51:36 +0100
+
 grml-etc-core (0.2.32) unstable; urgency=low
 
   * /etc/zsh/zshenv: source /etc/timezone if present
index b29d249..f6d1e42 100644 (file)
@@ -3,7 +3,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Sam Mär 17 12:18:26 CET 2007 [mika]
+# Latest change: Sam Mär 17 12:51:25 CET 2007 [mika]
 ################################################################################
 # This file is sourced on all invocations of the shell.
 # It is the 1st file zsh reads; it's read for every shell,
@@ -34,7 +34,7 @@
   [ -n "$LC_MESSAGES" ]   && export LC_MESSAGES
 
   [ -r /etc/sysconfig/keyboard ] && source /etc/sysconfig/keyboard
-  [ -r /etc/timezone ] && source /etc/timezone
+  [ -r /etc/timezone ] && TZ=$(cat /etc/timezone)
 
 # set environment variables (important for autologin on tty)
   [ -z "$HOSTNAME" ]      && export HOSTNAME=`hostname`