A short introduction to the use case: I am using a docker container to run my go tests using go test ./.... This can be achieved easily using docker exec <container> /bin/sh -c "go test ./...". Unfortunately go test ./... runs across all subdirectories and I'd like to exclude one (the vendor directory). The advised solution for this is using the following command: go test $(go list ./... | grep -v

