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

Re: Compiled files ignore aliases



On Feb 5,  4:33pm, Sebastian Gniazdowski wrote:
}
} this is probably expected as aliases are applied on parsing time. But
} maybe this wasn't yet recognized?

This is as expected, yes.

} Any way to have aliases working when sourcing .zwc file?

Typically one needs "zcompile -U" to turn OFF the aliases when creating
the .zwc file.  However, no function, zcompiled or otherwise, will use
aliases that are created after the function body is parsed.

What this means is:  The aliases have to be defined in the shell that
executes the zcompile command.



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