Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ea513ab823a5ae1b71f5f7843c601f8ab40785b96a68ae87be1beff84d12f301
Ticket: b0682c3c2497e8f27f18e91686031dda055ed19c
glob error
User & Date: anonymous on 2025-06-10 09:40:06
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    I have the following strange behaviour under Windows 10 with tcl_patchLevel=9.0.0 (and tcl_patchLevel=9.0.1 from BAWT)
    
    (bin) 1 % set tcl_patchLevel
    9.0.0
    (bin) 2 % glob Z:/Basistests/200*
    Z:/Basistests/2000_00_00 {Z:/Basistests/2000_00_00 - Test}
    (bin) 3 % glob -types d Z:/Basistests/200*
    Z:/Basistests/2000_00_00 {Z:/Basistests/2000_00_00 - Test}
    (bin) 4 % glob -types d -directory Z:/Basistests -tails Z:/Basistests 200*
    Z:Basistests 2000_00_00 {2000_00_00 - Test}
    (bin) 5 % glob -types d -directory Z:/Basistests -tails Z:/Basistests Z:/Basistests/200*
    couldn't read directory "Z:/Basistests/Z:Basistests/200*": not a directory
    
    Under tcl8 I got:
    
    (ABS) 1 % glob -types d -directory Z:/Basistests -tails Z:/Basistests 200*
    2000_00_00 {2000_00_00 - Test}
    (ABS) 2 % glob -types d -directory Z:/Basistests -tails Z:/Basistests Z:/Basistests/200*
    no files matched glob patterns "Z:/Basistests Z:/Basistests/200*"
    
    The additional string "Z:Basistests" on command 4 is wrong.
    
    Even more perplexing is the following (under Tcl/Tk 9.0.0):
    
    (ABS) 1 % glob -types d -directory Z:/Basistests -tails Z:/Basistests 200*
    Z:Basistests 2000_00_00 {2000_00_00 - Test}
    (ABS) 2 % cd Z:Basistests
    (Basistests) 3 % pwd
    Z:/Basistests
    (Basistests) 4 % cd C:
    () 5 % cd Z:Basistests
    (Basistests) 6 % cd 2000_00_00
    (2000_00_00) 7 % cd Z:Basistests
    couldn't change working directory to "Z:Basistests": no such file or directory
    (2000_00_00) 8 %
    
  5. foundin changed to: "9.0.0 9.0.1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "glob error"
  15. type changed to: "Bug"