zsh:division by zero
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)
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.)