> Not knowing diff, I copied Bart's changes in by hand and got: > > failed to load module: zsh/param Yeah, I pasted the wrong diff into the file I then attached. Sorry about that. In the meantime I've made some improvements, including correcting this: > _zarun: can't change option: zle It should now preserve option settings as much as possible. However, the function itself can't autoload with "sh" emulation in effect; if you want to use this where zsh is acting as /bin/sh, you need to use: emulate zsh -c 'autoload zargs' Since Ray asked: Apply this with patch -p1 Functions/Misc/zargs < zargs_patch2.txt