Subject: | prove --exec '' $test drops $test if ./$test dir exists |
When calling prove as:
prove --exec '' @tests
prove drops tests that happen to also be names of sub-directories of the
current working directory. I assume that this is interaction with the
normal processing of *.t files in named directories. But it seems that
if I've specified --exec '' (compiled tests) that searching directories
should be disabled for *.t files should be disabled.
In this example, my expectation is for the second call of prove to
return "potato", just as the first call did prior to the existence of
./potato/.
~ > cat bin/potato
#!/bin/sh
echo "ok 1"
echo "1..1"
~ > PATH=./bin:$PATH prove --dry --exec '' potato
potato
~ > PATH=./bin:$PATH prove --dry --exec '' potato
~ > mkdir potato
~ > PATH=./bin:$PATH prove --dry --exec '' potato
~ >
I could see it argued that the caller may have compiled *.t files, so
searching named directories might break existing usage. If so, could
there be an option to disable directory searching?
Thanks!
- danboo