Closed zzak closed 5 years ago
@marcomorain It's in the description of this PR but here's another test.
Using an empty -not -path ''
:
$ find . -type f -not -path '' -name '*.sh'
./vendor/golang.org/x/sys/unix/mkerrors.sh
./vendor/golang.org/x/sys/unix/mkall.sh
./vendor/google.golang.org/appengine/internal/regen.sh
./vendor/github.com/onsi/ginkgo/before_pr.sh
./.circleci/brew-deploy.sh
./.circleci/deploy-gh-pages.sh
./.circleci/generate-docs.sh
./install.sh
Using original command without -not -path
:
$ find . -type f -name '*.sh'
./vendor/golang.org/x/sys/unix/mkerrors.sh
./vendor/golang.org/x/sys/unix/mkall.sh
./vendor/google.golang.org/appengine/internal/regen.sh
./vendor/github.com/onsi/ginkgo/before_pr.sh
./.circleci/brew-deploy.sh
./.circleci/deploy-gh-pages.sh
./.circleci/generate-docs.sh
./install.sh
I can submit a docs fix to make it more clear that it’s a find pattern and include an example, but I don’t think this can support >1 exclude pattern, can it?
@wyardley Correct, just one exclude pattern is supported with this patch.
I've tested this command against the CLI: