Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
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=ypVjjmAiCWU9mUZRXExYu/8a5C/83dcubJZd9KV8FVI=;
        b=t75OnBx7JlyYLAyvLHmspoiPw5HlXEk6PP5MGmTPx1cwsBjWqhGg1azP8obNLR/36h
         2uGYCPiCtETuluSf1rlmU12hlkaUxyBKxDhxfFvO6ACou5jNHlIIw4LSwfNoAaSG77Ln
         YXjRuSAocHHAWUteSnZWqJqMjSNG6ZwwBU/MYdCNLYFhR/83x8KiFcmsr2wtM5ZnzRpW
         vlsJPDg3OiXkPQfVI4y8/HwrjjoPGhzrp0UwNUdmMIDFsKMwNb3eBFHDOm3uUN6xWF1d
         J+tkDXu55USl8Y9kiYpOqidaQxOILGW+kULNahTJxyAx6fZWoV/kKdGxADwK8qK3bhrm
         4y3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version:content-type;
        bh=ypVjjmAiCWU9mUZRXExYu/8a5C/83dcubJZd9KV8FVI=;
        b=fmOH1UFruEjuedRsljDIMu0QXIjkr24fh+f5usUk3lIBC83/3XvuthOTZ/8nLIgHs4
         EAXkH4d1VviBgjJSHiaGZeF5qNjkj7YHtnoGEEkLhWXaUqymYW0lIQEYWMhxif4uH6VZ
         UoV8Uw6vOmvPVNsC+cR0kbObzDHtbjt4cQNs/3pG9ko570ti+2fQl+R1PjSLMaibZrAL
         mydbzg929w/fd0u8NuAkmCxIObj664lS4tDF2JOs83xHYLf7KvKF0jmX5TyuUqBg24az
         +ov/IxTCaF7UgMHyJdB4oxj67+ZT/bt4QfjnTzoY5sNkSt+CuwjT6ZdnTjQQPD6/UrQ2
         f5rw==
X-Gm-Message-State: AG10YOQu5pRwH3ZfEn8bluJ62A8ZmDWZqZrbpZkhzBFFAxRQZsM+NpDPeCV2ETCm99Tdzw==
X-Received: by 10.66.55.73 with SMTP id q9mr22067193pap.44.1454697794776;
        Fri, 05 Feb 2016 10:43:14 -0800 (PST)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160205104314.ZM29996@torch.brasslantern.com>
Date: Fri, 5 Feb 2016 10:43:14 -0800
In-Reply-To: <CAKc7PVBeEpTN9jTg9HQE_ycuOP+jFGEFQZ4hoz8oT8LRDogcYg@mail.gmail.com>
Comments: In reply to Sebastian Gniazdowski <sgniazdowski@gmail.com>
        "Re: Compiled files ignore aliases" (Feb  5,  6:24pm)
References: <CAKc7PVDKxBdZ+9teFDS+Zd3VCvr_JYTpiGtYNuyRicAUfPa4KA@mail.gmail.com> 
	<160205083708.ZM29641@torch.brasslantern.com> 
	<CAKc7PVBeEpTN9jTg9HQE_ycuOP+jFGEFQZ4hoz8oT8LRDogcYg@mail.gmail.com>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Compiled files ignore aliases
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 37894

On Feb 5,  6:24pm, Sebastian Gniazdowski wrote:
}
} Yes I thought about it and it's reasonable, though unsymmetrical. Zwc
} changes things, there isn't full symmetry when sourcing file already
} parsed or not, but see *. The "reasonable" is that parsing probably
} does lookup each word in a hash table to see if there is an alias for
} it. Compiling means skipping that time consuming process.

By analogy, "alias" in shell is more like "#define" in C.  Once you've
compiled, the macro expansion is already done and doesn't happen again.

You can intentionally trigger alias expansion by using "eval", which is
(in this analogy) re-compiling at run time.

