Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compiled files ignore aliases
- X-seq: zsh-workers 37888
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Compiled files ignore aliases
- Date: Fri, 5 Feb 2016 08:37:08 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=m16qVjD0hg2vLtYWO84oRGVnQXmeTP/As+VUNzZpogI=; b=yN+iPp77NcYjpwgZdqkBezVtzi/7am67IEwAHvyXcPTfo+p+hHeaykPIoxh2f6DxLO rDJKkxLGj/ZyN568hGsjxlOitqere0K8ZSvjf6uSMK/Fro5L++lROg3Rq29dSZoXSxya Q9M3+oL8tdpwgbSa6Q8tvJVH6h/zPw4G3HCVX0Pq1Ptk948atkgWAiFqMkOEuX2yD/Fo vH4H0DwiuNG/wn/RnN1Xyx+CSEYn8V9YCF6gjm/QxMFgOGxfje4gabHDMZPlQjvnxhnc oLMPtvycP1ZEr2HPUnas/LJl7d9MB/6W9jazSq7lEVFLQakEFAu9ifzG0s7JBD6S0hfI Nt/g==
- In-reply-to: <CAKc7PVDKxBdZ+9teFDS+Zd3VCvr_JYTpiGtYNuyRicAUfPa4KA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDKxBdZ+9teFDS+Zd3VCvr_JYTpiGtYNuyRicAUfPa4KA@mail.gmail.com>
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