Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Strange Error in let command



On May 10, 12:58pm, Com MN PG P E B Consultant 3 wrote:
}
}   delay=20m # For example, duration is 20 minutes
}   ((delay=${delay/%m/*60}))
} 
} Strangely, this rises the error message
} 
}   bad math expression: operator expected at `m'

This works fine for me, in 4.2.0 and 4.2.6 and 4.3.2-dev-1, so I suspect
there's something that seems unrelated but is causing you side-effects.
What version of zsh are you using?  Have you tried this with "zsh -f"?



Messages sorted by: Reverse Date, Date, Thread, Author