Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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
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.