Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] internal: Document the difference between paramtab and realparamtab.
---
Src/params.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Src/params.c b/Src/params.c
index 730df33b6..fd7e31474 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -478,7 +478,13 @@ static initparam argvparam_pm = IPDEF9("", &pparams, NULL, \
static Param argvparam;
-/* hash table containing the parameters */
+/* "parameter table" - hash table containing the parameters
+ *
+ * realparamtab always points to the shell's global table. paramtab is sometimes
+ * temporarily changed to point at another table, while dealing with the keys
+ * of an associative array (for example, see makecompparams() which initializes
+ * the associative array ${compstate}).
+ */
/**/
mod_export HashTable paramtab, realparamtab;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author