summary refs log tree commit diff
path: root/bin/cash/tests/builtins/hash4.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/builtins/hash4.0')
-rw-r--r--bin/cash/tests/builtins/hash4.06
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/hash4.0 b/bin/cash/tests/builtins/hash4.0
new file mode 100644
index 00000000..bd07b83e
--- /dev/null
+++ b/bin/cash/tests/builtins/hash4.0
@@ -0,0 +1,6 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/builtins/hash4.0 231535 2012-02-11 21:06:45Z jilles $
+
+exec 3>&1
+m=`hash nosuchtool 2>&1 >&3`
+r=$?
+[ "$r" != 0 ] && [ -n "$m" ]