diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-24 15:24:29 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-24 15:58:24 -0700 |
commit | 9394583f96cf23634f9e34bf8537fa2001ed1c9f (patch) | |
tree | 2567513d4499d733ed58dd0ace77a3d141bff489 /tests/printf.in | |
parent | 3b4f4c5f596740f344cc0a00c9d3aad5dc8ebfcf (diff) |
Implement actual error handling for builtin_printf. Fix the tests.
Diffstat (limited to 'tests/printf.in')
-rw-r--r-- | tests/printf.in | 12 |
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 |