Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 16c9abbedb94e6e180d849937d89f06a39ea12c5
Ticket: 1084705fffffffffffffffffffffffffffffffff
glob -nocomplain swallows all errors.
User & Date: jcw on 2004-12-14 23:06:44
Changes

  1. 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.
    
    
  2. login: "jcw"
  3. mimetype: "text/plain"
  4. username: "jcw"