aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/printf.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/printf.in')
-rw-r--r--tests/printf.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/printf.in b/tests/printf.in
index 1e42b982..78c0d977 100644
--- a/tests/printf.in
+++ b/tests/printf.in
@@ -1,9 +1,11 @@
printf "Hello %d %i %f %F %g %G\n" 1 2 3 4 5 6
printf "%x %X %o %llu\n" 10 11 8 -1
-printf "%a %A\n" 14 15
+# %a has OS-dependent output - see #1139
+#printf "%a %A\n" 14 15
printf "%c %s\n" a hello
+printf "%c%c%c\n" hello … o
printf "%e %E\n" 5 6
printf "%20d\n" 50
@@ -28,4 +30,8 @@ echo
# Bogus printf specifier, should produce no stdout
printf "%5" 10 ^ /dev/null
+# Octal escapes produce literal bytes, not characters
+# \376 is 0xFE
+printf '\376' | xxd -p
+
true