Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / find / testsuite / find.gnu / execdir-root-only.exp
1 # Bug report by Bas van Gompel:
2 #
3 # This appears to work well. However when the rootdir is passed,
4 # something looks fishy:
5 #
6 # find / -mindepth 0 -maxdepth 0 -execdir echo {} \;
7 # .//
8 #
9 # I also spotted, when `+' is used:
10 #
11 # find / -mindepth 0 -maxdepth 0 -execdir echo == {} +
12 # ==
13 # == .//
14 #
15 # (Notice the first line of output, which should not be there.)
16
17
18 # This test checks the second of these two cases.
19 if { [ safe_path ] } {
20     find_start p { / -mindepth 0 -maxdepth 0 -execdir echo == "{}" + }
21 }