summaryrefslogtreecommitdiffstats
path: root/tests/bsd/okdir_stdin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bsd/okdir_stdin.sh')
-rw-r--r--tests/bsd/okdir_stdin.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bsd/okdir_stdin.sh b/tests/bsd/okdir_stdin.sh
new file mode 100644
index 0000000..7908ac0
--- /dev/null
+++ b/tests/bsd/okdir_stdin.sh
@@ -0,0 +1,2 @@
+# -okdir should *not* close stdin
+yes | bfs_diff basic -okdir bash -c 'printf "%s? " "$1" && head -n1' bash {} \;