From 9907054f8324beadc0c55b21bf95cb1a16bd8402 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Fri, 28 Nov 2014 13:18:49 +1000 Subject: glob: bug fixes and Tcl compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the case where the pattern/filename contains a space Respect the —tails option, but generate an error if -types is given. Change the error message on no match to be Tcl-compatible Signed-off-by: Steve Bennett --- tests/glob.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/glob.test b/tests/glob.test index 9bbdcd8..86c0dc8 100644 --- a/tests/glob.test +++ b/tests/glob.test @@ -90,7 +90,7 @@ test glob-1.2 {Simple} { test glob-1.3 {Simple} -returnCodes error -body { lsort [glob x*] -} -result {no files matched glob patterns} +} -result {no files matched glob pattern "x*"} test glob-1.4 {Simple} -returnCodes error -body { lsort [glob] @@ -121,11 +121,11 @@ test glob-2.5 {Glob match files containing braced brackets} -returnCodes ok -bod } -result [list tmp/close\]bracket tmp/open\[bracket] test glob-3.1 {Directory option} -returnCodes ok -body { - lsort [glob -dir tmp *] + lsort [glob -dir tmp -tails *] } -result [list close\]bracket close\}brace open\[bracket open\{brace] test glob-3.2 {Directory option} -returnCodes ok -body { - lsort [glob -dir tmp *close*] + lsort [glob -dir tmp -tails *close*] } -result [list close\]bracket close\}brace] testreport -- cgit v1.1