Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 65236bbbf3d8de502c2fe96185ec2be28d11974e
Ticket: 475941ffffffffffffffffffffffffffffffffff
glob not returning filenames...
User & Date: petasis on 2001-10-29 09:22:37
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl Version: 8.4a4 (CVS 25 October 2001)
    OS: Unix (and perhaps Windows - untested)
    
    Glob seems to fail to return filenames when the search is done
    in a directory other than the current directory.
    For example, the following script:
    
    set CWD [pwd]
    
    proc TestGlob {dir} {
      puts "Executing \"glob -nocomplain -types {f l r} $dir/*\"..."
      puts [glob -nocomplain -types {f l r} $dir/*]
      puts "Executing \"glob -nocomplain -types {f l r} -directory $dir *\"..."
      puts [glob -nocomplain -types {f l r} -directory $dir *]
      puts {}
    }
    
    TestGlob $CWD
    cd ..
    puts "**** Changing Directory to \"[pwd]\"..."
    TestGlob $CWD
    
    fails to return the file names in the second invocation
    of the TestGlob procedure, after the current directory has been
    changed...
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "petasis"
  9. subsystem changed to: "37. File System"
  10. title changed to: "glob not returning filenames..."
  11. type changed to: "Bug"