Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-25
07:37
Merge [4f5ed03131d9e6a9]: Fix [e5ca49bcfa] - zipfs glob. check-in: b527f4293e user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2024-05-07
06:54 • Closed ticket [e5ca49bcfa]: glob -type {d f} in a ZIP filesystem returns the dir... artifact: ea270abf42 user: apnadkarni
2024-01-19
14:34
(cherry-pick): Bug [e5ca49bcfa] - zipfs glob check-in: 907af5418c user: jan.nijtmans tags: core-8-branch
11:28 • Ticket [e5ca49bcfa] glob -type {d f} in a ZIP filesystem returns the directory n... artifact: 3b5649caf8 user: apnadkarni
11:27
Bug [e5ca49bcfa] - zipfs glob check-in: 4f5ed03131 user: apnadkarni tags: trunk, main
10:40 • Ticket [e5ca49bcfa] glob -type {d f} in a ZIP filesystem returns the directory n... artifact: c79fb33921 user: apnadkarni
05:46 • Ticket [e5ca49bcfa]: 4 changes artifact: 1d0eb054b3 user: apnadkarni
2024-01-18
16:14 • New ticket [e5ca49bcfa]. artifact: 754995bb04 user: anonymous

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.