From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29680 invoked by alias); 16 Mar 2018 18:56:38 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23254 Received: (qmail 137 invoked by uid 1010); 16 Mar 2018 18:56:38 -0000 X-Qmail-Scanner-Diagnostics: from mta03.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.9):SA:0(-2.6/5.0):. Processed in 1.640807 secs); 16 Mar 2018 18:56:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=dfKuI0fe c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=fuBuXs3x_Jf15SLjr1YA:9 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: real time alias? To: zsh-users@zsh.org References: <98aa0638-97ed-dfe0-8dd2-39129d02c084@eastlink.ca> <9001d78e-91fd-8505-518f-27247462d3c2@eastlink.ca> <20180315214450.sle4bsb3ab6dt56i@prometheus.u-strasbg.fr> From: Ray Andrews Message-id: Date: Fri, 16 Mar 2018 11:56:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-reply-to: Content-language: en-CA On 16/03/18 11:13 AM, Bart Schaefer wrote: > The result of expanding an alias might include parens, braces, pipes, > etc. - it can actually change the parsed syntax of the function body. > So to "grab aliases again" you have to recompile the whole body of the > function. Right, because it might not be a self contained block of code, it could have syntactic effects on the rest of the function. > The original (unparsed) body of the function is not stored anywhere, > so to recompile it you have to get it back from wherever it originally > appeared. I get it.  The function can't 'grab' a new version of the alias without recompiling itself which ends up being far more trouble than it's worth.  Mind, my functions do know where they came from:     (1)TYPE: c is a shell function from /aWorking/Zsh/Source/c: ... still I get the point, the sort of thing I'm speculating about is square circles, best to leave aliases as the strings of characters that they are.