File: execdir-root-only.exp

package info (click to toggle)
findutils 4.2.28-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,460 kB
  • ctags: 2,635
  • sloc: ansic: 28,555; sh: 4,519; makefile: 616; exp: 419; sed: 16
file content (24 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Bug report by Bas van Gompel:
# 
# This appears to work well. However when the rootdir is passed,
# something looks fishy:
# 
# find / -mindepth 0 -maxdepth 0 -execdir echo {} \;
# .//
# 
# I also spotted, when `+' is used:
# 
# find / -mindepth 0 -maxdepth 0 -execdir echo == {} +
# ==
# == .//
# 
# (Notice the first line of output, which should not be there.)


# This test checks the second of these two cases.
if { [ dot_is_on_path ] } {
    warning { Cannot perform test as your $PATH environment variable includes a reference to the current directory } 
    untested { skipping this test because your $PATH variable is wrongly set }
} else {
    find_start p { / -mindepth 0 -maxdepth 0 -execdir echo == "{}" + }
}