1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

users/15770 HASH_DIRS tracks INTERACTIVE

This commit is contained in:
Bart Schaefer 2011-02-11 04:04:05 +00:00
parent d5e53b0077
commit 90b83e028a

View file

@ -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)));