Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / locate / testsuite / locate.gnu / exists3.exp
1 # tests for -e: make sure we do not print a file if it does not exist.
2 set tmp "tmp"
3 exec rm -rf $tmp
4 exec mkdir $tmp
5 exec mkdir $tmp/subdir
6 exec touch $tmp/subdir/fred1
7 exec touch $tmp/subdir/fred2
8 locate_start p "--changecwd=. --output=$tmp/locatedb --localpaths=tmp/subdir/" "--database=$tmp/locatedb -e fred" {} {} { exec rm "tmp/subdir/fred1" }