From 437f67718cd03f1d2eff2331827c2e225dee4aaf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 23 Aug 2007 09:17:02 +0000 Subject: unposted: calendar_show: error in subscripts --- Functions/Calendar/calendar_show | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions') 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 -- cgit 1.4.1