Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41d206f77b9b2bccf879a116a4f1a716aa3dbbd9b11270d9540ab53834b976cd
Ticket: 4676f5c780901f2df5b025b8270eaeabbfbd9095
glob -dir . returns corrupted/phantom entries near the top of the zipfs:/ tree
User & Date: anonymous on 2026-08-03 22:12:33
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Environment: Tcl 9.1b1, built from source (tclsh9.1), Ubuntu Linux.
    
    Reproduction, from a fresh tclsh:
    
    
    cd //zipfs://
    pwd
    glob *
    glob -dir . *
    cd lib
    glob *
    glob -dir . *
    cd tcl
    glob *
    glob -dir . *
    cd tcl_library
    glob t*
    glob -dir . t*
    
    Actual output:
    
    
    % cd //zipfs://
    % pwd
    //zipfs:/
    % glob *
    lib
    % glob -dir . *
    ./ib/tcl
    % cd lib
    % glob *
    tcl
    % glob -dir . *
    ./tcl ./b/tcl
    % cd tcl
    % glob *
    tcl_library
    % glob -dir . *
    ./tcl_library
    % cd tcl_library
    % glob t*
    tclIndex tcltest tm.tcl tzdata
    % glob -dir . t*
    ./tclIndex ./tcltest ./tm.tcl ./tzdata
    
    At //zipfs:/ (which contains only "lib"), plain glob * correctly returns "lib", but glob -dir . * returns "./ib/tcl" instead.
    
    One level down, in lib (which contains only "tcl"), plain glob * correctly returns "tcl", but glob -dir . * returns "./tcl ./b/tcl".
    
    Two levels down (lib/tcl) and further (lib/tcl/tcl_library), glob -dir . * and glob -dir . t* both return correct results, matching plain glob exactly.
    
    This was repeatable for me. I'd appreciate it if someone could try the commands above and see if they get the same result.
    
  5. foundin changed to: "9.1b1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "37. File System"
  14. title changed to:
    glob -dir . returns corrupted/phantom entries near the top of the zipfs:/ tree
    
  15. type changed to: "Bug"