Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: baef535ae754ca7b9c2c55448e4f6cf93b73c10d
Ticket: 3531271fffffffffffffffffffffffffffffffff
glob with unreadable directory
User & Date: guardus on 2012-06-01 08:11:37
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    glob returns an error if the directory is unreadable.  It would be nice if there is at least an option to silently ignore unreadable directories.  I am using ActiveState Tcl 8.5.11.1 on linux.
    
    > ls -ld tmp*
    d--------- 2 user group 4096 2012-06-01 00:43 tmp/
    drwxr-xr-x 2 user group 4096 2012-06-01 01:03 tmp2/
    
    > tclsh
    > puts $tcl_patchLevel
    8.5.11
    
    > glob -nocomplain -type f -- */*.c
    couldn't read directory "tmp/": permission denied
    > glob -nocomplain -type f -- tmp2/*.c
    tmp2/a.c
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "guardus"
  10. subsystem changed to: "37. File System"
  11. title changed to: "glob with unreadable directory"
  12. type changed to: "Bug"