Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zcompile does not expand aliases defined in the compiled script
- X-seq: zsh-workers 46200
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: zcompile does not expand aliases defined in the compiled script
- Date: Tue, 7 Jul 2020 12:00:46 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: zsh-workers@xxxxxxx
I naively expected that `zcompile x && source x` has the same effect
as plain `source x` but apparently when using the former aliases
defined within `x` aren't expanded during the evaluation of `x`.
Is this expected behavior?
% zsh -f
% print 'alias x=:; x' >x
% zcompile x
% source x
x:1: command not found: x
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author