summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-04-25 18:28:07 (GMT)
committervincentdarley <vincentdarley>2003-04-25 18:28:07 (GMT)
commit2207395596d5bdd38f3c6d01187ee678155d227f (patch)
treee656382d969e18617331f33d44031f1301bdf523 /tests/fileName.test
parente39ac41979189210210c4ad46c3d86e7e72069fb (diff)
downloadtcl-2207395596d5bdd38f3c6d01187ee678155d227f.zip
tcl-2207395596d5bdd38f3c6d01187ee678155d227f.tar.gz
tcl-2207395596d5bdd38f3c6d01187ee678155d227f.tar.bz2
fix to glob and filenames with square brackets
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index 01b67ef..3dce4c5 100644
--- a/tests/fileName.test
+++ b/tests/fileName.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: fileName.test,v 1.30 2003/02/12 18:57:51 vincentdarley Exp $
+# RCS: @(#) $Id: fileName.test,v 1.31 2003/04/25 18:28:42 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1333,6 +1333,13 @@ test filename-11.21 {Tcl_GlobCmd} {
list [catch {lsort [glob -type d -path $globname *]} msg] $msg
} [list 0 [lsort [list $globname]]]
+test filename-11.21.1 {Tcl_GlobCmd} {
+ close [open {[tcl].testremains} w]
+ set res [list [catch {lsort [glob -path {[tcl]} *]} msg] $msg]
+ file delete -force {[tcl].testremains}
+ set res
+} [list 0 {{[tcl].testremains}}]
+
# Get rid of file/dir if it exists, since it will have
# been left behind by a previous failed run.
if {[file exists $horribleglobname]} {