7726f6eeaffcf74f1ff06ea97fb20517f3b87546
[platform/upstream/findutils.git] / find / testsuite / find.gnu / execdir-pwd.exp
1 # tests for -execdir pwd \+
2 if { [ safe_path ] } {
3     global SKIP_OLD
4
5     exec rm -rf tmp
6     exec mkdir tmp
7
8     # Create an empty shell script.
9     exec touch    tmp/foo
10     exec chmod +x tmp/foo
11
12     # The -execdir should find the "foo" in the current directory.
13     # If not, the find command is probably executing the command
14     # built up by -execdir in the wrong directory.
15
16     set SKIP_OLD 1
17     find_start p {tmp -name foo -execdir sh ./foo  \{\} + } "" 
18     set SKIP_OLD 0
19     exec rm -rf tmp
20 }