aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/printf.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/printf.in')
-rw-r--r--tests/printf.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/printf.in b/tests/printf.in
index f0669469..6f24ad56 100644
--- a/tests/printf.in
+++ b/tests/printf.in
@@ -17,3 +17,15 @@ printf "abc\rdef\n"
printf "Msg1\fMsg2\n"
printf "foo\vbar\vbaz\n"
printf "\111 \x50" # \u0051 \U00000052
+
+echo
+echo "Test escapes"
+
+# \c escape means "stop printing"
+printf 'a\cb'
+echo
+
+# Bogus printf specifier, should produce no stdout
+printf "%5" 10 ^ /dev/null
+
+true