summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-09-18 10:28:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-09-18 10:28:56 -0400
commit877b62e12ca391f377e13e6b5a18d477a581e657 (patch)
tree4e6ed385b9aedbc82eaf98006f3405979dcdedb2
parent4e92acdc3a5d342cbcdc383ba5a2b07e3e4841ee (diff)
downloadbfs-main.tar.xz
tests: POSIX doesn't *require* -ok ... {} + to be unsupportedHEADmain
-rwxr-xr-xtests/tests.sh13
1 files changed, 11 insertions, 2 deletions
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
+ # <plus-sign> 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 {} + \;
}