AsyncCommand icon indicating copy to clipboard operation
AsyncCommand copied to clipboard

zsh:division by zero

Open dezza opened this issue 11 years ago • 1 comments

AsyncCommand/autoload/asynccommand.vim

https://github.com/idbrii/AsyncCommand/blob/master/autoload/asynccommand.vim#L91

If extra parantheses are applied (at least on zsh) shell error is returned: zsh:1: division by zero

I opened this issue to discuss the impact on removing the parantheses .. It works for me @ zsh and I will test with bash later when off work :+1:

Like so (no parantheses):

let tool_cmd = a:command . printf(shellredir, temp_file)

dezza avatar Mar 27 '15 10:03 dezza

Please test with :AsyncShell echo hello && echo there. You should get a split opened containing:

hello
there

See #11.

It would be good to know why zsh gives division by zero. What async command are you using?

Also, you could change let tool_cmd to let g:tool_cmd and after running your async command, use echo g:tool_cmd so you can see what it's trying to execute. (Or may want to do something similar in Async_Impl.)

idbrii avatar Apr 07 '15 05:04 idbrii