Skip to content

Commit

Permalink
Fix [63449c0514]: [namespace children] doesn't match non-glob pattern…
Browse files Browse the repository at this point in the history
…s below the global namespace.

Candidate for inclusion in Tcl 9.0.2 (to be discussed)
  • Loading branch information
jan.nijtmans committed Dec 14, 2024
2 parents aa0df64 + e6ebc0b commit 959297d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/tclNamesp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3192,7 +3192,7 @@ NamespaceChildrenCmd(
if (strncmp(pattern, nsPtr->fullName, length) != 0) {
goto searchDone;
}
if (FindChildEntry(nsPtr, pattern+length) != NULL) {
if (FindChildEntry(nsPtr, (nsPtr != globalNsPtr ? 2 : 0) + pattern+length) != NULL) {
Tcl_ListObjAppendElement(NULL, listPtr,
Tcl_NewStringObj(pattern, -1));
}
Expand Down

0 comments on commit 959297d

Please sign in to comment.