mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-02-01 22:28:59 +01:00
22 lines
513 B
Plaintext
22 lines
513 B
Plaintext
# 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 == "{}" + }
|
|
}
|