mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-26 01:41:14 +01:00
15586: remove =alias expansion, leaving only =cmd.
This commit is contained in:
parent
5dd1ba01ea
commit
23581f7664
3 changed files with 7 additions and 12 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
12
Src/subst.c
12
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) {
|
||||
|
|
Loading…
Reference in a new issue