From fc98276e1401366fd91a437af3e7fa5f1471f94e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 21 Nov 2016 14:40:46 -0500 Subject: Fix -execdir for / --- tests.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index ba731eb..3d3d10b 100755 --- a/tests.sh +++ b/tests.sh @@ -522,7 +522,21 @@ function test_0097() { (cd scratch && "$BFS" -delete) } -for i in {1..97}; do +function test_0098() { + bfs_diff / -maxdepth 0 -execdir pwd ';' +} + +function test_0099() { + # Don't prepend ./ for absolute paths in -execdir + bfs_diff / -maxdepth 0 -execdir echo '{}' ';' +} + +function test_0100() { + # // is canonicalized to / + bfs_diff // -maxdepth 0 -execdir echo '{}' ';' +} + +for i in {1..100}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then -- cgit v1.2.3