about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-08-23 09:17:02 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-08-23 09:17:02 +0000
commit437f67718cd03f1d2eff2331827c2e225dee4aaf (patch)
tree8dee3d86f42d12b98c7c4f869788036750d4fb7c
parentd931eed82655f1cbb54e7e1749642c8965e6d414 (diff)
downloadzsh-437f67718cd03f1d2eff2331827c2e225dee4aaf.tar.gz
zsh-437f67718cd03f1d2eff2331827c2e225dee4aaf.tar.xz
zsh-437f67718cd03f1d2eff2331827c2e225dee4aaf.zip
unposted: calendar_show: error in subscripts
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Calendar/calendar_show4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f81ce31a..a5b9e08f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-23  Peter Stephenson  <pws@csr.com>
+
+	* unposted: Functions/Calendar/calendar_show: used subscript
+	0 instead of 1, hence broken since 23562.
+
 2007-08-22  Peter Stephenson  <pws@csr.com>
 
 	* 23794: Src/Zle/compresult.c: completing on 'echo "foo$"<TAB>'
diff --git a/Functions/Calendar/calendar_show b/Functions/Calendar/calendar_show
index 77f025ec5..13fc6a491 100644
--- a/Functions/Calendar/calendar_show
+++ b/Functions/Calendar/calendar_show
@@ -16,8 +16,8 @@ if [[ -n $DISPLAY &&  $start -eq $stop ]]; then
   if [[ -n ${commands[xmessage]} ]]; then
     cmd=(xmessage -center)
   fi
-  if [[ -n $cmd[0] ]] &&
-    ! ps -u$UID | grep $cmd[0] >/dev/null 2>&1; then
+  if [[ -n $cmd[1] ]] &&
+    ! ps -u$UID | grep $cmd[1] >/dev/null 2>&1; then
     # turn off job control for this
     ($cmd "$*" &)
   fi