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

Re: Problem with user function



On Fri, Feb 23, 2024 at 8:59 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> 0 /aRay 0 % zsh -f
> b6-12-Deb11b#  alias X='echo howdy'; Y () { X }
> b6-12-Deb11b# Y
> (EE)
> Fatal server error:

You'll get the same results by running `zsh -f` and then `X`.

You would get a different result if you ran `alias X='echo howdy'` and
`Y () { X }` separately. In this case `X` would get expanded within
`Y()`.

Roman.




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