Migrated from GPL version 2 to GPL version 3
[findutils.git] / locate / testsuite / locate.gnu / exists1.exp
blob4341950a8f988a4389f3873a54c086677e06d96b
1 # tests for -e: make sure we print a file if it exists.
2 set tmp "tmp"
3 exec rm -rf $tmp
4 exec mkdir $tmp
5 exec mkdir $tmp/subdir
6 exec touch $tmp/subdir/fred
7 locate_start p "--changecwd=. --output=$tmp/locatedb --localpaths=tmp/subdir/" "--database=$tmp/locatedb -e fred" {}