From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17460 invoked from network); 7 Aug 2001 10:10:48 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Aug 2001 10:10:48 -0000 Received: (qmail 17246 invoked by alias); 7 Aug 2001 10:10:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15586 Received: (qmail 17212 invoked from network); 7 Aug 2001 10:10:35 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: =alias In-reply-to: "Peter Stephenson"'s message of "Mon, 30 Jul 2001 12:00:22 BST." Date: Tue, 07 Aug 2001 11:10:02 +0100 From: Peter Stephenson I wrote: > Is there anybody out there who wouldn't shout for joy if we removed the > alias-lookup part of =-substitution so that it only expanded command paths? It seems not. Index: Src/subst.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/subst.c,v retrieving revision 1.20 diff -u -r1.20 subst.c --- Src/subst.c 2001/06/12 10:34:57 1.20 +++ Src/subst.c 2001/08/07 10:09:02 @@ -414,15 +414,9 @@ sav = *pp; *pp = 0; if (!(cnam = findcmd(str + 1, 1))) { - Alias a = (Alias) aliastab->getnode(aliastab, str + 1); - - if (a) - cnam = a->text; - else { - if (isset(NOMATCH)) - zerr("%s not found", str + 1, 0); - return 0; - } + if (isset(NOMATCH)) + zerr("%s not found", str + 1, 0); + return 0; } *namptr = dupstring(cnam); if (sav) { Index: Doc/Zsh/expn.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v retrieving revision 1.33 diff -u -r1.33 expn.yo --- Doc/Zsh/expn.yo 2001/07/25 15:59:23 1.33 +++ Doc/Zsh/expn.yo 2001/08/07 10:09:02 @@ -1092,11 +1092,9 @@ If a word begins with an unquoted `tt(=)' and the tt(EQUALS) option is set, the remainder of the word is taken as the -name of a command or alias. If a command +name of a command. If a command exists by that name, the word is replaced by the full pathname of the command. -If an alias exists by that name, the word -is replaced with the text of the alias. Filename expansion is performed on the right hand side of a parameter assignment, including those appearing after commands of the -- Peter Stephenson Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************