This PR addresses a bug where KILL, FILES, and _FILES$ unintentionally shared a static DIR pointer when performing file searches. As a result, calling any of these functions would reset the search state of _FILES$, leading to unexpected behavior.
Each of these functions (KILL, FILES, and _FILES$) now maintains its own separate directory search state, preventing interference between them.
This PR addresses a bug where KILL, FILES, and _FILES$ unintentionally shared a static
DIR
pointer when performing file searches. As a result, calling any of these functions would reset the search state of _FILES$, leading to unexpected behavior.Each of these functions (KILL, FILES, and _FILES$) now maintains its own separate directory search state, preventing interference between them.
This issue was reported here.