diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-30 13:07:45 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-30 13:07:45 +0000 |
commit | db59a707c6a149a2c5849fa8439aa148a887e175 (patch) | |
tree | 681281976986ca274cf39be787bf42dfb3ccd6d2 | |
parent | 950756d57943a0bf104d9f015b8da604171a956e (diff) | |
download | zsh-db59a707c6a149a2c5849fa8439aa148a887e175.tar.gz zsh-db59a707c6a149a2c5849fa8439aa148a887e175.tar.xz zsh-db59a707c6a149a2c5849fa8439aa148a887e175.zip |
unlocalised variable
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Functions/Calendar/calendar_scandate | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 7a49bf6ce..607b3e5ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-06-30 Peter Stephenson <pws@csr.com> + * unposted: Functions/Calendar/calendar_scandate: unlocalised + variable spotted with warncreateglobal. + * 25255: Doc/Zsh/func.yo, Src/exec.c, Test/C04funcdef.ztst: anonymous functions using "() { ... }" and "function { ... }". 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] |