diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-03 17:26:03 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-03 17:26:03 +0000 |
commit | 8e25f4449f75fa46ed130a8dc0a20b3744eb61eb (patch) | |
tree | 6b445e99cf41c59c4c72c75162d380ae100187fc /Src/lex.c | |
parent | 919f7b12ad4cd6e4b6745e7ea647b9bf0e58c70c (diff) | |
download | zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.gz zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.xz zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.zip |
26675: add POSIX_ALIASES option
Diffstat (limited to 'Src/lex.c')
-rw-r--r-- | Src/lex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/lex.c b/Src/lex.c index 466447963..f7e87477a 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1748,9 +1748,11 @@ exalias(void) if (tok == STRING) { /* Check for an alias */ - if (!noaliases && isset(ALIASESOPT)) { + if (!noaliases && isset(ALIASESOPT) && + (!isset(POSIXALIASES) || + !reswdtab->getnode(reswdtab, zshlextext))) { char *suf; - + an = (Alias) aliastab->getnode(aliastab, zshlextext); if (an && !an->inuse && ((an->node.flags & ALIAS_GLOBAL) || incmdpos || inalmore)) { |