glob -type {d f} in a ZIP filesystem returns the directory names only
Closed / Fixede5ca49bcfaf96ec3744f4462fce06f943421202eCreated 3 years agoUpdated 3 years ago
Descriptionplain2024-01-18 16:14:10
Interactive test:
tclsh9.0
% cd $tcl_library
% pwd
//zipfs:/lib/tcl/tcl_library
% glob -types d *
platform tcltest msgcat http cookiejar opt encoding tzdata msgs
% glob -types f *
tclIndex clock.tcl word.tcl readfile.tcl writefile.tcl history.tcl parray.tcl safe.tcl tm.tcl foreachline.tcl pkgIndex.tcl init.tcl install.tcl package.tcl auto.tcl
% glob -types {d f} *
platform tcltest msgcat http cookiejar opt encoding tzdata msgs
As revealed by the above test, in the //zipfs: volume the "glob -types {d f} *" command returns the names of the directories only; the names of the files are missing.
Referenced by3
b527f4293eMerge [4f5ed03131d9e6a9]: Fix [e5ca49bcfa] - zipfs glob. check-in2024-08-25 07:37:41907af5418c(cherry-pick): Bug [e5ca49bcfa] - zipfs glob check-in2024-01-19 14:34:334f5ed03131Bug [e5ca49bcfa] - zipfs glob check-in2024-01-19 11:27:25
apnadkarni Ticket [e5ca49bcfa]: 4 changes
[History diff]2024-01-19 05:46:53
apnadkarnimarkdown2024-01-19 10:40:48
Confirmed, and for good measure other issues with -types:
% glob -type l *
tclIndex clock.tcl word.tcl readfile.tcl writefile.tcl history.tcl parray.tcl safe.tcl tm.tcl foreachline.tcl pkgIndex.tcl init.tcl install.tcl package.tcl auto.tcl
% glob -type p *
tclIndex clock.tcl word.tcl readfile.tcl writefile.tcl history.tcl parray.tcl safe.tcl tm.tcl foreachline.tcl pkgIndex.tcl init.tcl install.tcl package.tcl auto.tcl
Both above commands should return empty.
apnadkarniplain2024-01-19 11:28:58
Fixed in [4f5ed03131].
apnadkarni Closed ticket [e5ca49bcfa].
[History diff]2024-05-07 06:54:37
Log in (anonymous is fine) to add a comment.