diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-06-14 13:01:41 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-06-14 13:01:41 +0000 |
commit | 14dde084755a8b15004d59bb6be5cc7a3726a8bf (patch) | |
tree | 067f4ebff5e399fb560c710b798a4e3421f771ea /Functions/Calendar/calendar | |
parent | 4c1a3a89f0ade5be2330ce688cd3c3c649667f9a (diff) | |
download | zsh-14dde084755a8b15004d59bb6be5cc7a3726a8bf.tar.gz zsh-14dde084755a8b15004d59bb6be5cc7a3726a8bf.tar.xz zsh-14dde084755a8b15004d59bb6be5cc7a3726a8bf.zip |
28038: improved handling of recurring events in calendar system
Diffstat (limited to 'Functions/Calendar/calendar')
-rw-r--r-- | Functions/Calendar/calendar | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Functions/Calendar/calendar b/Functions/Calendar/calendar index e4cdff8e4..48876aa51 100644 --- a/Functions/Calendar/calendar +++ b/Functions/Calendar/calendar @@ -296,7 +296,9 @@ chmod 600 $mycmds fi # Look for a repeat time. if [[ -n ${reply[rpttime]} ]]; then - (( repeattime = ${reply[rpttime]}, repeating = 1 )) + # The actual time of the next event, which appears as text + (( repeattime = ${reply[rpttime]} )) + (( repeating = 1 )) else (( repeating = 0 )) fi @@ -320,7 +322,7 @@ chmod 600 $mycmds match=() # Strip continuation lines starting " #". while [[ $showline = (#b)(*$'\n')[[:space:]]##\#[^$'\n']##(|$'\n'(*)) ]]; do - showline="$match[1]$match[3]" + showline="$match[1]$match[3]" done # Strip trailing empty lines showline=${showline%%[[:space:]]#} |