Overview
| Artifact ID: | 16c9abbedb94e6e180d849937d89f06a39ea12c5 |
|---|---|
| Ticket: | 1084705fffffffffffffffffffffffffffffffff
glob -nocomplain swallows all errors. |
| User & Date: | jcw on 2004-12-14 23:06:44 |
Changes
- icomment:
Logged In: YES user_id=1983 Attached a test file errvfs.tcl, which is testvfs.tcl but edited to always throw an error in matchindirectory. Here's the output from this script: OK: { glob D* } result {Desktop Documents} OK: { glob -nocomplain D* } result {Desktop Documents} ERROR: { glob blah* } -> code 1 msg {no files matched glob pattern "blah*"} OK: { glob -nocomplain blah* } result {} ERROR: { glob root/blah* } -> code 1 msg BOOM! OK: { glob -nocomplain root/blah* } result {} The last case explains the problem I ran into: -nocomplain loses all errors, not just from returning no match. - login: "jcw"
- mimetype: "text/plain"
- username: "jcw"