Migrated from GPL version 2 to GPL version 3
[findutils.git] / locate / testsuite / locate.gnu / notexists1.exp
blobba7f2971adbab864e49b07beae9361d2c1a49d54
1 # tests for -E: make sure we don't print a file if it exists.
2 # Since there are no matches in this case, we expect a nonzero
3 # return value as well.
4 set tmp "tmp"
5 exec rm -rf $tmp
6 exec mkdir $tmp
7 exec mkdir $tmp/subdir
8 exec touch $tmp/subdir/fred
9 locate_start f "--changecwd=. --output=$tmp/locatedb --localpaths=tmp/subdir/" "--database=$tmp/locatedb -E fred" {}