about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-02-08 11:49:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-02-08 11:49:28 +0000
commit4a0ddedf0af0bbd22530132df830b588b2b63220 (patch)
treeff240f0b690eeb65ad4cc579518ff584c86038d1 /Functions
parentb8d5ad137c4a9d11155588b07e6454e49a3e322d (diff)
downloadzsh-4a0ddedf0af0bbd22530132df830b588b2b63220.tar.gz
zsh-4a0ddedf0af0bbd22530132df830b588b2b63220.tar.xz
zsh-4a0ddedf0af0bbd22530132df830b588b2b63220.zip
unposted: a couple of typeset -g's and a comment
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Calendar/calendar_scandate5
1 files changed, 3 insertions, 2 deletions
diff --git a/Functions/Calendar/calendar_scandate b/Functions/Calendar/calendar_scandate
index fd8eb1133..4ae2ae606 100644
--- a/Functions/Calendar/calendar_scandate
+++ b/Functions/Calendar/calendar_scandate
@@ -720,8 +720,9 @@ if (( relative )); then
     fi
     # relative_start is zero if we're not using it
     (( reladd += (hour * 60 + minute) * 60 + second ))
+    typeset -g REPLY
     (( REPLY = relative_start + reladd  ))
-    [[ -n $setvar ]] && REPLY2=$line
+    [[ -n $setvar ]] && typeset -g REPLY2="$line"
     return 0
   fi
   return 1
@@ -747,6 +748,6 @@ fi
 
 strftime -s REPLY -r $fmt $nums
 
-[[ -n $setvar ]] && REPLY2=$line
+[[ -n $setvar ]] && typeset -g REPLY2="$line"
 
 return 0