diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/module.c | 2 | ||||
-rw-r--r-- | Test/V01zmodload.ztst | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 02497f496..46174124c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-07-31 Peter Stephenson <pws@csr.com> + * 23733: Src/module.c, Test/V01zmodload.ztst: zmodload -LaF + didn't include unloaded modules, making it a bit pointless. + * 23732: Src/exec.c, Test/B02tyepset.ztst: unknown builtin error message was broken; test warning output was broken; exec of zsh in new env test was broken. diff --git a/Src/module.c b/Src/module.c index c3785e609..a89010d74 100644 --- a/Src/module.c +++ b/Src/module.c @@ -215,7 +215,7 @@ printmodulenode(HashNode hn, int flags) fputs(" -> ", stdout); nicezputs(m->u.alias, stdout); } - } else if (m->u.handle) { + } else if (m->u.handle || (flags & PRINTMOD_AUTO)) { /* * Loaded module. */ diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst index cbfde12d6..a51535791 100644 --- a/Test/V01zmodload.ztst +++ b/Test/V01zmodload.ztst @@ -260,6 +260,11 @@ zmodload zsh/parameter 0d:Unload the modules loaded by this test suite + zmodload -aF zsh/zftp b:zftp + zmodload -LaF | grep zftp +0:Listing feature autoloads includes unloaded modules +>zmodload -Fa zsh/zftp b:zftp + %clean eval "$deps" |