On 12/03/2016 09:05 AM, Bart Schaefer wrote:
On Dec 3, 7:44am, Ray Andrews wrote: } } On 12/02/2016 07:51 PM, Bart Schaefer wrote: } > It occurs to me that it might be slightly better to use } > } > alias zmv='function { . zmv }' } > } Gotcha ... ok, thanks Bart, I'll not try to understand why, that's taken } on faith. I was having trouble coming up with an example last night, but: You may have noticed that "noglob" acts a bit like "command" in that aliases are not expanded:
I had no idea. If ever I run into that, I'm warned in advance.
% alias noglob='noglob '
I will never understand the thinking that produced things like that.
Ok, autoload it is. Astonishing that you can remember all these little twists and turns Bart. Simplicity is not a zsh virtue.If you want noglob with zmv you have to autoload the real function, as there's no way to use precommand modifiers with an anonymous function.