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 | |
| parent | 26671: various minor attribute tidy ups (diff) | |
| download | zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.gz zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.bz2 zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.lz zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.xz zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.tar.zst zsh-8e25f4449f75fa46ed130a8dc0a20b3744eb61eb.zip | |
26675: add POSIX_ALIASES option
Diffstat (limited to 'Src')
| -rw-r--r-- | Src/lex.c | 6 | ||||
| -rw-r--r-- | Src/options.c | 1 | ||||
| -rw-r--r-- | Src/zsh.h | 1 |
3 files changed, 6 insertions, 2 deletions
@@ -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)) { diff --git a/Src/options.c b/Src/options.c index f852ec830..d310f346d 100644 --- a/Src/options.c +++ b/Src/options.c @@ -198,6 +198,7 @@ static struct optname optns[] = { {{NULL, "octalzeroes", OPT_EMULATE|OPT_SH}, OCTALZEROES}, {{NULL, "overstrike", 0}, OVERSTRIKE}, {{NULL, "pathdirs", OPT_EMULATE}, PATHDIRS}, +{{NULL, "posixaliases", OPT_EMULATE|OPT_BOURNE}, POSIXALIASES}, {{NULL, "posixbuiltins", OPT_EMULATE|OPT_BOURNE}, POSIXBUILTINS}, {{NULL, "posixidentifiers", OPT_EMULATE|OPT_BOURNE}, POSIXIDENTIFIERS}, {{NULL, "printeightbit", 0}, PRINTEIGHTBIT}, @@ -1933,6 +1933,7 @@ enum { OCTALZEROES, OVERSTRIKE, PATHDIRS, + POSIXALIASES, POSIXBUILTINS, POSIXIDENTIFIERS, PRINTEIGHTBIT, |
