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:
parent
d5e53b0077
commit
90b83e028a
1 changed files with 3 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue