]> Cypherpunks repositories - gostls13.git/commit
filepath: fix Glob to return no error on nonmatching patterns
authorMichael Shields <mshields@google.com>
Sat, 17 Sep 2011 03:30:54 +0000 (20:30 -0700)
committerRob Pike <r@golang.org>
Sat, 17 Sep 2011 03:30:54 +0000 (20:30 -0700)
commit44f12eb5ad7c08b8303ec2ab2f7013b675d725fa
tree9acdd113be9291c8151353c0c85b47b396d90f6b
parent46eb718c99355315f7a26de4745b95eac8a54081
filepath: fix Glob to return no error on nonmatching patterns

filepath.Glob is documented to return nil if no files match
and an error only if the pattern is invalid.  This change
fixes it to work as documented and adds a regression test.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5040045
src/pkg/path/filepath/match.go
src/pkg/path/filepath/match_test.go
src/pkg/template/helper.go