fi;;
esac; done
-[ "$*" ] || set -- "*"
+[ "$*" ] || set -- "."
[ "$depth" -ge 0 -o "$depth" -le 0 ] 2>&- || depth=0
read DY DM DD <<-EOF
local junk1 start end rrfreq rrint rrend evtitle evlink junk2
while read -r junk1 start end rrfreq rrint rrend evtitle evlink junk2; do
+ [ ! "$start" ] && continue # empty line
[ "$rrend" -eq -1 ] && rrend=9999999999
if [ "$start" -lt "$dend" ] &&
dcnt=$((iday - idow * 86400 + ws * 86400))
dow=$ws
dcal="$(date -ud @"$dcnt" +%d)"
-
events="$(
printf %s\\n "$events" \
| rrexpand "$dcnt" "$((dcnt + 42 * 86400))" \
"$(UNSTRING "${link#*#}" |URL)" \
"$(UNSTRING "$title" |HTML)"
elif [ "$((start / 86400))" -eq "$((dcnt / 86400))" ]; then
- printf '<li>%s - <a href="%s\#%s">%s</a></li>' \
+ printf '<li>%s - <a href="%s#%s">%s</a></li>' \
"$(date -ud @"$start" +%H:%M)" \
"$(UNSTRING "${link%%#*}" |URL)" \
"$(UNSTRING "${link#*#}" |URL)" \