2024年6月4日(火) 15:11 konsolebox <konsole...@gmail.com>: > I haven't looked at this but it will keep lazy functions safe to > implement right?
Right. The fix shouldn't change the observable behavior. The functions are saved in two hash tables, `shell_functions' and `shell_function_defs'. The function bodies are supposed to be put in the former hash table, and the metadata (the source-file location and the line where it is defined) are supposed to be put in the latter hash table. However, we reuse the data structure for the function declaration (containing both bodies and metadata) to keep the metadata, and the function bodies were also contained in the latter hash table unintentionally. We've been saving the data that has never been used. -- Koichi