Overview
| Artifact ID: | f918f82427945f2a859ba09252549ff1c3e9df0c |
|---|---|
| Ticket: | 1084705fffffffffffffffffffffffffffffffff
glob -nocomplain swallows all errors. |
| User & Date: | jcw on 2004-12-13 21:53:36 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.4.9"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jcw"
- subsystem changed to: "37. File System"
- title changed to: "cannot make VFS driver throw error in glob"
- type changed to: "Bug"