Closed as not planned
Description
Go version 1.4.2
Mac OS X 10.10
Example:
package main
import "fmt"
import "path/filepath"
import "os"
func main() {
files, err := filepath.Glob("/usr/local/go/src/**/*.go")
if err != nil {
fmt.Print(err)
os.Exit(1)
}
fmt.Printf("files: %d\n", len(files))
for _, f := range files {
fmt.Println(f)
}
}
Expected:
% ls /usr/local/go/src/**/*.go | wc -l
1633
Actual:
files: 732
It seems that **
is equivalent to *
. The extended **
pattern is common in shells and is supported in Rust and Java for example.