From 90b83e028aa52bbb3efeff8dec38e6320f073d7d Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 11 Feb 2011 04:04:05 +0000 Subject: users/15770 HASH_DIRS tracks INTERACTIVE --- Src/init.c | 3 +++ 1 file changed, 3 insertions(+) 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))); -- cgit 1.4.1