From db59a707c6a149a2c5849fa8439aa148a887e175 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 30 Jun 2008 13:07:45 +0000 Subject: unlocalised variable --- Functions/Calendar/calendar_scandate | 1 + 1 file changed, 1 insertion(+) (limited to 'Functions/Calendar/calendar_scandate') diff --git a/Functions/Calendar/calendar_scandate b/Functions/Calendar/calendar_scandate index eed70671c..fd8eb1133 100644 --- a/Functions/Calendar/calendar_scandate +++ b/Functions/Calendar/calendar_scandate @@ -267,6 +267,7 @@ fi # We do this by minimal matching at the head, i.e. ${...#...}. # To use a case statement we'd need to be able to request non-greedy # matching for a pattern. +local rest rest=${line#(#ibm)${~tspat}(<0-12>):(<0-59>)[.:]((<0-59>)(.<->|))[[:space:]]#([ap])(|.)[[:space:]]#m(.|[[:space:]]|(#e))} if [[ $rest != $line ]]; then hour=$match[2] -- cgit 1.4.1