From 877b62e12ca391f377e13e6b5a18d477a581e657 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Sep 2022 10:28:56 -0400 Subject: tests: POSIX doesn't *require* -ok ... {} + to be unsupported --- tests/tests.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/tests.sh b/tests/tests.sh index 786a16e..8c65c72 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -295,7 +295,6 @@ posix_tests=( test_nouser_ulimit test_ok_stdin - test_ok_plus_semicolon test_path @@ -652,7 +651,6 @@ gnu_tests=( test_ok_nothing test_okdir_closed_stdin - test_okdir_plus_semicolon test_perm_000_slash test_perm_222_slash @@ -847,6 +845,10 @@ bfs_tests=( test_nohidden test_nohidden_depth + test_ok_plus_semicolon + + test_okdir_plus_semicolon + test_perm_symbolic_trailing_comma test_perm_symbolic_double_comma test_perm_symbolic_missing_action @@ -2110,6 +2112,13 @@ function test_okdir_stdin() { } function test_ok_plus_semicolon() { + # The -ok primary shall be equivalent to -exec, except that the use of a + # to punctuate the end of the primary expression need not be + # supported, ... + # + # bfs chooses not to support it, for compatibility with most other find + # implementations. + yes | bfs_diff basic -ok echo {} + \; } -- cgit v1.2.3