zsh-workers
 help / color / mirror / code / Atom feed
* zcompile does not expand aliases defined in the compiled script
@ 2020-07-07 10:00 Roman Perepelitsa
  2020-07-07 20:28 ` Mikael Magnusson
  0 siblings, 1 reply; 4+ messages in thread
From: Roman Perepelitsa @ 2020-07-07 10:00 UTC (permalink / raw)
  To: Zsh hackers list

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-08 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 10:00 zcompile does not expand aliases defined in the compiled script Roman Perepelitsa
2020-07-07 20:28 ` Mikael Magnusson
2020-07-08  5:18   ` Roman Perepelitsa
2020-07-08 16:59     ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).