<i>glob -dir . returns corrupted/phantom entries near the top of the zipfs:/ tree</i>.
by
.
D 2026-08-03T22:12:33.914
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Environment:\sTcl\s9.1b1,\sbuilt\sfrom\ssource\s(tclsh9.1),\sUbuntu\sLinux.\r\n\r\nReproduction,\sfrom\sa\sfresh\stclsh:\r\n\r\n\r\ncd\s//zipfs://\r\npwd\r\nglob\s*\r\nglob\s-dir\s.\s*\r\ncd\slib\r\nglob\s*\r\nglob\s-dir\s.\s*\r\ncd\stcl\r\nglob\s*\r\nglob\s-dir\s.\s*\r\ncd\stcl_library\r\nglob\st*\r\nglob\s-dir\s.\st*\r\n\r\nActual\soutput:\r\n\r\n\r\n%\scd\s//zipfs://\r\n%\spwd\r\n//zipfs:/\r\n%\sglob\s*\r\nlib\r\n%\sglob\s-dir\s.\s*\r\n./ib/tcl\r\n%\scd\slib\r\n%\sglob\s*\r\ntcl\r\n%\sglob\s-dir\s.\s*\r\n./tcl\s./b/tcl\r\n%\scd\stcl\r\n%\sglob\s*\r\ntcl_library\r\n%\sglob\s-dir\s.\s*\r\n./tcl_library\r\n%\scd\stcl_library\r\n%\sglob\st*\r\ntclIndex\stcltest\stm.tcl\stzdata\r\n%\sglob\s-dir\s.\st*\r\n./tclIndex\s./tcltest\s./tm.tcl\s./tzdata\r\n\r\nAt\s//zipfs:/\s(which\scontains\sonly\s"lib"),\splain\sglob\s*\scorrectly\sreturns\s"lib",\sbut\sglob\s-dir\s.\s*\sreturns\s"./ib/tcl"\sinstead.\r\n\r\nOne\slevel\sdown,\sin\slib\s(which\scontains\sonly\s"tcl"),\splain\sglob\s*\scorrectly\sreturns\s"tcl",\sbut\sglob\s-dir\s.\s*\sreturns\s"./tcl\s./b/tcl".\r\n\r\nTwo\slevels\sdown\s(lib/tcl)\sand\sfurther\s(lib/tcl/tcl_library),\sglob\s-dir\s.\s*\sand\sglob\s-dir\s.\st*\sboth\sreturn\scorrect\sresults,\smatching\splain\sglob\sexactly.\r\n\r\nThis\swas\srepeatable\sfor\sme.\sI'd\sappreciate\sit\sif\ssomeone\scould\stry\sthe\scommands\sabove\sand\ssee\sif\sthey\sget\sthe\ssame\sresult.
J foundin 9.1b1
J is_private 0
J login anonymous
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 37.\sFile\sSystem
J title glob\s-dir\s.\sreturns\scorrupted/phantom\sentries\snear\sthe\stop\sof\sthe\szipfs:/\stree
J type Bug
K 4676f5c780901f2df5b025b8270eaeabbfbd9095
U anonymous
Z c6b661e69abc0b72bf263078ce5cdd15