From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: =alias
Date: Tue, 07 Aug 2001 11:10:02 +0100 [thread overview]
Message-ID: <T55391fda68c0a88d01398@> (raw)
In-Reply-To: "Peter Stephenson"'s message of "Mon, 30 Jul 2001 12:00:22 BST." <Tc0a88d01551023f6c0@mailsweeper01.cambridgesiliconradio.com>
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 <pws@csr.com> 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.
**********************************************************************
next parent reply other threads:[~2001-08-07 10:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Tc0a88d01551023f6c0@mailsweeper01.cambridgesiliconradio.com>
2001-08-07 10:10 ` Peter Stephenson [this message]
2001-08-07 11:22 ` =alias Oliver Kiddle
2001-08-07 14:05 ` =alias Peter Stephenson
[not found] <unknown997179051@fake.primenet.com.au>
2001-08-07 10:24 ` =alias Geoff Wing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=T55391fda68c0a88d01398@ \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).