From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13923 invoked by alias); 9 May 2016 12:41:28 -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: X-Seq: 21522 Received: (qmail 15328 invoked from network); 9 May 2016 12:41:26 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Date: Mon, 9 May 2016 14:30:51 +0200 From: Marc Chantreux To: Bart Schaefer Cc: Zsh Users Subject: Re: make aliases work inside the function? (using a preprocessor?) Message-ID: <20160509123051.GA29715@home.u-strasbg.fr> References: <20160504134632.GA5729@aurora-borealis.phear.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: ClamAV using ClamSMTP Bart, Peter, Oliver: thank you very much for such a detailed answer. i had some weird behaviors those last months experimenting some zsh based features and now completly understand why. the thing is most of them are very usefull to me and cannot be converted to functions some examples: https://github.com/eiro/zexperiment/blob/master/lib/basics.zsh#L34 https://github.com/eiro/zexperiment/blob/master/bin/uze.zsh#L55 the only way to make it work a reliable way is to use a preprocessor so i plan to use m4. once again: thanks for helping. regards