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

Re: Problem with user function



On Fri, Feb 23, 2024 at 11:26 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> % alias X='echo howdy'; Y() { X }
> zsh: defining function based on alias `Y'

Aside from the "not a valid test" thing, note that it said "based on
alias `Y'" but the alias you tried to create was for X.

There must already be an "alias Y=..." (for some "...") at the time
you ran this.




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