File: execdir-root-only.exp

package info (click to toggle)
findutils 4.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,108 kB
  • sloc: ansic: 126,635; sh: 11,486; yacc: 1,852; makefile: 844; exp: 839; python: 66; sed: 16
file content (21 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 { [ safe_path ] } {
    find_start p { / -mindepth 0 -maxdepth 0 -execdir echo == "{}" + }
}