Pure: Error since zsh 5.3 upgrade

Created on 12 Dec 2016  ·  10Comments  ·  Source: sindresorhus/pure

❯ 
 prompt_pure_async_callback:13: bad math expression: operand expected at `> 2 '

❯ zsh --version
zsh 5.3 (x86_64-apple-darwin16.1.0)

❯ which zsh
/usr/local/bin/zsh

Most helpful comment

Pure v1.4.1 is now released, which fixes this issue 🎉. Sorry for the inconvenience, I should've updated the bundled zsh-async last month when I found the issue 😝.

All 10 comments

I believe I fixed this a while back, could you please try the latest version (1.3.1) of zsh-async. Is it still reproducible with it?

@harukizaemon I just pushed the update to pure, so you can just update to the latest master of pure and the issue should be resolved.

Hm, I tinkered around with it and thought it might be a slimzsh issue, but I think -- for me at least -- the issue is still present in pure.

EDIT:
zsh --version
zsh 5.3 (x86_64-apple-darwin16.1.0)

@felixfoertsch could you elaborate? What exactly is your issue? Did you try to update pure (https://github.com/sindresorhus/pure/commit/787cab6d89889402dd06d769d03cf70baa0fbd8c)?

Please note: this is not yet published on npm, if you wish to try this fix you have to check out the git master.

@mafredri thanks! I had the exact same issue @harukizaemon posted.

I manually replaced the async.zsh and now the error is gone. It would not go away with just pulling from the repo.

Pure v1.4.1 is now released, which fixes this issue 🎉. Sorry for the inconvenience, I should've updated the bundled zsh-async last month when I found the issue 😝.

The latest update has fixed the issue for me. Thank you!

I'm also having this issue. Using antigen to load in pure. How would I go about updating?

EDIT: google is pretty cool

antigen update sindresorhus/pure

All set

prompt_pure_async_callback:13: bad math expression: operand expected at> 2 '1

Hi, I do have the same problem on zsh 5.4.2 (x86_64-apple-darwin17.0.0)
I'm using lambda-pure (https://github.com/marszall87/lambda-pure/blob/master/lambda-pure.zsh), can it be linked to you or should I see that myself ? (maintainer of lambda-pure seems to not update it anymore)

@Alex-Werner you should raise this issue over at lambda-pure, we don't provide support for forks. Happy to help if you can reproduce in Pure.

Was this page helpful?
0 / 5 - 0 ratings