diff options
Diffstat (limited to 'find/testsuite/find.gnu/execdir-pwd.exp')
-rw-r--r-- | find/testsuite/find.gnu/execdir-pwd.exp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/find/testsuite/find.gnu/execdir-pwd.exp b/find/testsuite/find.gnu/execdir-pwd.exp new file mode 100644 index 0000000..740785f --- /dev/null +++ b/find/testsuite/find.gnu/execdir-pwd.exp @@ -0,0 +1,20 @@ +# tests for -execdir pwd \+ +if { [ safe_path ] } { + global SKIP_OLD + + exec rm -rf tmp + exec mkdir tmp + + # Create an empty shell script. + exec touch tmp/foo + exec chmod +x tmp/foo + + # The -execdir should find the "foo" in the current directory. + # If not, the find command is probably executing the command + # built up by -execdir in the wrong directory. + + set SKIP_OLD 1 + find_start p {tmp -name foo -execdir sh ./foo \{\} + } "" + set SKIP_OLD 0 + exec rm -rf tmp +} |