code: func isShellPatternMatch(shellPattern, fullpath string) bool {
  	match, _ := filepath.Match(shellPattern, fullpath)
  	if match {
  		return true
  	}
  	if !strings.Contains(shellPattern, filepathSeparatorString) {
  		match, _ := filepath.Match(shellPattern, filepath.Base(fullpath))
  		if match {
  			return true
  		}
  	}
  	return false
  }
docs: // isShellPatternMatch returns whether fullpath matches the shell pattern, as defined by http://golang.org/pkg/path/filepath/#Match. As an additional special case, when the pattern looks like a basename, the last path element of fullpath is also checked against it.