diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2011-02-11 04:04:05 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2011-02-11 04:04:05 +0000 |
commit | 90b83e028aa52bbb3efeff8dec38e6320f073d7d (patch) | |
tree | 1fb7688f195070958e094f22078b154b9d181210 /Src | |
parent | d5e53b0077f649988d38ac33640f81bcbcc56942 (diff) | |
download | zsh-90b83e028aa52bbb3efeff8dec38e6320f073d7d.tar.gz zsh-90b83e028aa52bbb3efeff8dec38e6320f073d7d.tar.xz zsh-90b83e028aa52bbb3efeff8dec38e6320f073d7d.zip |
users/15770 HASH_DIRS tracks INTERACTIVE
Diffstat (limited to 'Src')
-rw-r--r-- | Src/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/init.c b/Src/init.c index 3ce482488..aa052d834 100644 --- a/Src/init.c +++ b/Src/init.c @@ -243,6 +243,7 @@ parseargs(char **argv, char **runscript) * still 2 at the end, we set it to the value of INTERACTIVE. */ opts[MONITOR] = 2; /* may be unset in init_io() */ + opts[HASHDIRS] = 2; /* same relationship to INTERACTIVE */ opts[SHINSTDIN] = 0; opts[SINGLECOMMAND] = 0; @@ -351,6 +352,8 @@ parseargs(char **argv, char **runscript) opts[INTERACTIVE] = !!opts[INTERACTIVE]; if (opts[MONITOR] == 2) opts[MONITOR] = opts[INTERACTIVE]; + if (opts[HASHDIRS] == 2) + opts[HASHDIRS] = opts[INTERACTIVE]; pparams = x = (char **) zshcalloc((countlinknodes(paramlist) + 1) * sizeof(char *)); while ((*x++ = (char *)getlinknode(paramlist))); |