1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

19767, 19785: store flags for -z and -k options to autoload allowing the

completion system to be used with ksh_autoload set
This commit is contained in:
Oliver Kiddle 2004-04-20 12:11:13 +00:00
parent 8c890ebe7f
commit ca0deae382
13 changed files with 116 additions and 80 deletions

View file

@ -3398,8 +3398,12 @@ loadautofn(Shfunc shf, int fksh, int autol)
prog = getfpfunc(shf->nam, &ksh);
noaliases = noalias;
if (ksh == 1)
if (ksh == 1) {
ksh = fksh;
if (ksh == 1)
ksh = (shf->flags & PM_KSHSTORED) ? 2 :
(shf->flags & PM_ZSHSTORED) ? 0 : 1;
}
if (prog == &dummy_eprog) {
/* We're not actually in the function; decrement locallevel */