Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / locate / testsuite / locate.gnu / notexists2.exp
1 # tests for -E: make sure we do 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/fred2" }