Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-22
11:34
Merge [4a8ee305536fb371], Bugs [14db54d81e], [6183f535c89]. Glob and find on zipfs root. zipfs-glob... check-in: bf1b961d17 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2023-09-19
12:00
Merge 8.7 - Bugs [14db54d81e], [6183f535c89]. Glob and find on zipfs root check-in: 4a8ee30553 user: apnadkarni tags: trunk, main
11:46 • Closed ticket [14db54d81e]: glob on zipfs root returns root itself plus 6 ot... artifact: 98bc40d252 user: apnadkarni
11:41
Bugs [14db54d81e], [6183f535c89]. Glob and find on zipfs root check-in: 65474fdc06 user: apnadkarni tags: core-8-branch
2023-09-10
17:01 • New ticket [14db54d81e] glob on zipfs root returns root itself. artifact: 5ba48c3364 user: apnadkarni

glob on zipfs root returns root itself

Closed / Fixed14db54d81e28edc9bf4e4eb25ade064b9d99b658Created 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-09-10 17:01:44

Sample below

% zipfs mount ../tests/zipfiles/test.zip [zipfs root]
% glob -dir [zipfs root] *
//zipfs:/testdir //zipfs:/test //zipfs:/
% glob //zipfs:/*
//zipfs:/testdir //zipfs:/test //zipfs:/
% glob -tails -dir [zipfs root] *
testdir test .
% cd [zipfs root]
% glob *
testdir test {}

As seen above when an archive is mounted at //zipfs:/ globbing the directory returns the //zipfs:/ as one of the results. In the last two cases it returns "." or the empty string as one of file names.

This does not seem correct. Globbing / on Unix or C:/ on Windows does not behave this way. The root directory of the volume should not be returned as one of the contained files/dirs.

Referenced by3
apnadkarniplain2023-09-19 11:46:27
Fixed in [65474fdc06].
Log in (anonymous is fine) to add a comment.