mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-01 20:11:06 +01:00
unlocalised variable
This commit is contained in:
parent
950756d579
commit
db59a707c6
2 changed files with 4 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue