summary refs log tree commit diff
path: root/bin/cash/tests/builtins/printf4.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/builtins/printf4.0')
-rw-r--r--bin/cash/tests/builtins/printf4.05
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/printf4.0 b/bin/cash/tests/builtins/printf4.0
new file mode 100644
index 00000000..ab6abef6
--- /dev/null
+++ b/bin/cash/tests/builtins/printf4.0
@@ -0,0 +1,5 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/builtins/printf4.0 216606 2010-12-20 23:06:57Z jilles $
+
+set -e
+v=$(! printf "%d" 4wrong 2>/dev/null)
+[ "$v" = "4" ]