diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-28 09:12:54 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-28 09:12:54 +0000 |
commit | 061c1ce9129b3d34e8cf386633bbcc54110bd569 (patch) | |
tree | a69a2c9f23118dccb1feb6cdc75d9777e90ca3d8 /Src/Zle/zle_tricky.c | |
parent | 5621ce6faf905448bf814288209c0b0104d45b14 (diff) | |
download | zsh-061c1ce9129b3d34e8cf386633bbcc54110bd569.tar.gz zsh-061c1ce9129b3d34e8cf386633bbcc54110bd569.tar.xz zsh-061c1ce9129b3d34e8cf386633bbcc54110bd569.zip |
add `aliases' option to be able to disable alias expansion (13554)
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index e97bd1f6d..31556041c 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -964,6 +964,7 @@ static char * get_comp_string(void) { int t0, tt0, i, j, k, cp, rd, sl, ocs, ins, oins, ia, parct, varq = 0; + int ona = noaliases; char *s = NULL, *linptr, *tmp, *p, *tt = NULL; freebrinfo(brbeg); @@ -1236,12 +1237,12 @@ get_comp_string(void) addedx = 0; goto start; } - noaliases = 0; + noaliases = ona; lexrestore(); return NULL; } - noaliases = 0; + noaliases = ona; /* Check if we are in an array subscript. We simply assume that * * we are in a subscript if we are in brackets. Correct solution * @@ -2138,7 +2139,7 @@ int doexpandhist(void) { unsigned char *ol; - int oll, ocs, ne = noerrs, err; + int oll, ocs, ne = noerrs, err, ona = noaliases; pushheap(); metafy_line(); @@ -2165,7 +2166,7 @@ doexpandhist(void) * means that the expanded string is unusable. */ err = errflag; noerrs = ne; - noaliases = 0; + noaliases = ona; strinend(); inpop(); zleparse = 0; |