Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.