From 7d2b53f65bae3f16cf318103e53eb8350af6bd8a Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 28 Mar 2015 21:08:02 -0700 Subject: 34804: refine POSIX_ALIAS change to preserve old behavior of [[ ]] conditionals --- Src/lex.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Src') diff --git a/Src/lex.c b/Src/lex.c index 4d8355bac..2e611707e 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1794,9 +1794,6 @@ exalias(void) if (has_token(tokstr)) { char *p, *t; - if (isset(POSIXALIASES)) - return 0; - zshlextext = p = copy; for (t = tokstr; (*p++ = itok(*t) ? ztokens[*t++ - Pound] : *t++);); @@ -1816,7 +1813,7 @@ exalias(void) if (tok == STRING) { /* Check for an alias */ - if (checkalias()) { + if ((zshlextext != copy || !isset(POSIXALIASES)) && checkalias()) { if (zshlextext == copy) zshlextext = tokstr; return 1; -- cgit 1.4.1