1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-22 00:21:27 +01:00

18880: Don't return unset parameters in $parameters

This commit is contained in:
Peter Stephenson 2003-07-22 13:12:09 +00:00
parent 48205cc72f
commit ef8d5c7214
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-07-22 Peter Stephenson <pws@csr.com>
* 18880: Src/Modules/parameter.c: Don't return unset variables
in whole array value for $parameters.
2003-07-21 Peter Stephenson <pws@csr.com>
* 18859: Completion/Base/Core/_description, Doc/Zsh/compsys.yo:

View file

@ -181,6 +181,8 @@ scanpmparameters(HashTable ht, ScanFunc func, int flags)
for (i = 0; i < realparamtab->hsize; i++)
for (hn = realparamtab->nodes[i]; hn; hn = hn->next) {
if (((Param)hn)->flags & PM_UNSET)
continue;
pm.nam = hn->nam;
if (func != scancountparams &&
((flags & (SCANPM_WANTVALS|SCANPM_MATCHVAL)) ||