From cad5dc5cc50a43203971939fd2806bfbf9a5dac9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 9 Jun 2016 18:37:58 -0400 Subject: Allow flags like -L before ',' or ')' as pathnames. --- tests.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index ead81f6..5fd4a9b 100755 --- a/tests.sh +++ b/tests.sh @@ -344,6 +344,21 @@ function test_0061() { } function test_0062() { + cd "$weirdnames" + find_diff -L '-' '(-' '!-' ',' ')' './(' './!' \( \! -print , -print \) +} + +function test_0063() { + cd "$weirdnames" + find_diff -L ',' -true +} + +function test_0064() { + cd "$weirdnames" + find_diff -follow ',' -true +} + +function test_0065() { find "$basic" -fprint "$out/out.find" "$BFS" "$basic" -fprint "$out/out.bfs" @@ -352,7 +367,7 @@ function test_0062() { diff -u "$out/out.find" "$out/out.bfs" } -for i in {1..62}; do +for i in {1..65}; do test="test_$(printf '%04d' $i)" ("$test" "$dir") status=$? -- cgit v1.2.3