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
bf1b961d17Merge [4a8ee305536fb371], Bugs [14db54d81e], [6183f535c89]. Glob and find on zipfs root. zipfs-glob-no-match fails but that will be fixed shortly. check-in2024-08-22 11:34:394a8ee30553Merge 8.7 - Bugs [14db54d81e], [6183f535c89]. Glob and find on zipfs root check-in2023-09-19 12:00:1065474fdc06Bugs [14db54d81e], [6183f535c89]. Glob and find on zipfs root check-in2023-09-19 11:41:26
apnadkarniplain2023-09-19 11:46:27
Fixed in [65474fdc06].
Log in (anonymous is fine) to add a comment.