Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5ba48c3364c01c6375146fb44770c8651c87428b92699710fbe4472c8f6260f3
Ticket: 14db54d81e28edc9bf4e4eb25ade064b9d99b658
glob on zipfs root returns root itself
User & Date: apnadkarni on 2023-09-10 17:01:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    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.
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "glob on zipfs root returns root itself"
  15. type changed to: "Bug"