summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-08-07 10:18:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-08-07 10:18:31 +0000
commit23581f7664b70932e8736f10e5b143beeb4e7783 (patch)
treeef0de99ab19be8e38caa321c1e2cecd5dd4a4cdc
parent5dd1ba01ea1b4251fa8b05f4acbd1fe9750176aa (diff)
downloadzsh-23581f7664b70932e8736f10e5b143beeb4e7783.tar.gz
zsh-23581f7664b70932e8736f10e5b143beeb4e7783.zip
15586: remove =alias expansion, leaving only =cmd.
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/expn.yo4
-rw-r--r--Src/subst.c12
3 files changed, 7 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index cbd516bd2..091f1a0fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2001-08-07 Peter Stephenson <pws@csr.com>
+ * 15586: Src/subst.c, Doc/Zsh/expn.yo: remove =alias expansion,
+ so `=' only expands pathnames. Hooray!
+
* 15585: Doc/Zsh/contrib.yo, Functions/Zle/bash-down-case-word,
Functions/Zle/bash-up-case-word: two new Zle functions with
bash-style word boundaries.
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 52604cfd0..b7d010bc8 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1092,11 +1092,9 @@ tt($OLDPWD) are never abbreviated in this fashion.
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
diff --git a/Src/subst.c b/Src/subst.c
index b5480d75e..0ef084106 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -414,15 +414,9 @@ filesubstr(char **namptr, int assign)
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) {