On 12/02/2016 04:49 PM, Bart Schaefer wrote:
Kewl. Works as you say, avoids editing the script and any other complications or gotchas. So the outer function call trumps the protocol for the plain script, that's good to know for any similar issue.On Dec 2, 4:15pm, Ray Andrews wrote: } } BTW, don't I remember something to the effect of changing } setopts but only for the duration of a given script? If so, that sounds } like a healthy way of doing it. I'm not recalling what you might be thinking of here, but you can certainly do this: alias zmv='() { . zmv }' That will load zmv from $path instead of $fpath and use function scope for the "emulate -L".