summaryrefslogtreecommitdiffstats
path: root/tests/bfs/ok_plus_semicolon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bfs/ok_plus_semicolon.sh')
-rw-r--r--tests/bfs/ok_plus_semicolon.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bfs/ok_plus_semicolon.sh b/tests/bfs/ok_plus_semicolon.sh
new file mode 100644
index 0000000..57d6103
--- /dev/null
+++ b/tests/bfs/ok_plus_semicolon.sh
@@ -0,0 +1,8 @@
+# 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 {} + \;