Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problem with zmv



On 12/02/2016 07:51 PM, Bart Schaefer wrote:
On Dec 2,  6:59pm, Ray Andrews wrote:
}
} > On Dec 2,  4:15pm, Ray Andrews wrote:
} >
} > alias zmv='() { . zmv }'
} >
} Kewl.

It occurs to me that it might be slightly better to use

     alias zmv='function { . zmv }'

In the unlikely event that the "zmv" alias gets expanded as the second
word on the line, you'll get an error instead of defining the first
word on the line as a function that calls zmv.
Gotcha ... ok, thanks Bart, I'll not try to understand why, that's taken on faith.



Messages sorted by: Reverse Date, Date, Thread, Author