Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f918f82427945f2a859ba09252549ff1c3e9df0c
Ticket: 1084705fffffffffffffffffffffffffffffffff
glob -nocomplain swallows all errors.
User & Date: jcw on 2004-12-13 21:53:36
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    (This may be a TclVFS issue, but I'm not sure)
    
    Am writing a VFS driver in Tcl, which needs to throw errors 
    (EACCESS) for certain calls to "glob" from Tcl.  The 
    "matchindirectory" handles glob, but I cannot make it generate 
    errors which get thrown back to the caller of glob.
    
    A TclVFS driver with the following definition in it returns an empty 
    list for glob, instead of throwing an error:
    
         proc matchindirectory {conn path actualpath pattern type} {
             error bah!
         }
    
    A related detail perhaps is mentioned on the wiki at the end of page 
    http://mini.net/tcl/12328 - it does not apply to matchindirectory, 
    which according to the docs does not use posixerror, but I'll include 
    it for completeness:
    
        % vfs::filesystem posixerror 13
        command returned bad code: -1
        %
    
    My test environment was a couple of different 8.4.9 and 8.5a2 
    builds on Mac OS X (tclsh's, wish's, and tclkit's).  None return an 
    error from glob.
    
    -jcw
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jcw"
  9. subsystem changed to: "37. File System"
  10. title changed to: "cannot make VFS driver throw error in glob"
  11. type changed to: "Bug"