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

Re: problem with zmv



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.



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