Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / find / testsuite / find.gnu / sv-bug-17782.exp
1 # Savannah bug #17782.
2 # While -execdir echo blah {} works, -execdir echo "blah {}" doesn't.
3 # The bug is that the ./ prefix is prepended to the argument containing the
4 # braces, not to the expansion of the braces, so you get output like
5 # ./blah foo
6 # instead of
7 # blah ./foo
8 #
9 if { [ safe_path ] } {
10     exec rm -rf tmp
11     exec mkdir tmp
12     exec touch tmp/foo
13     find_start p { tmp -name foo -execdir echo "saw {}" \; }
14     exec rm -rf tmp
15 }