This patch is extracted from my own extension to Tclhttpd, and adds new commands to the global namespace:
::Object_Url {virtual object {inThread 0}}
::Obj_UrlRemove {object}
::Objdomain {object sock suffix}
::Object_Respond {sock code result {type text/html}}
These commands inject specially designed objects into the Direct() array, and allow those objects to export methods as direct...
I tried this on OSX with ActiveTcl 8.5 and I do not see the error. I did the following from within tclsh:
% mkdir \[temp\]
% set pattern *
% set dir /path/to/the/dir/with/[temp]
% glob -nocomplain -- [file join $dir $pattern]
I get a directory list from the glob with the [temp] directory as well. No errors.
What version of Tcl?
What OS?.