about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-06-17 08:38:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-06-17 08:38:51 +0000
commit7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa (patch)
treea72f6be5b26b3faa30cbd9e90278a25924e214a0 /Test
parent14bfaab3efce9e76bfe589a4a6c000bffe6e1f1b (diff)
downloadzsh-7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa.tar.gz
zsh-7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa.tar.xz
zsh-7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa.zip
add test for 21352
Diffstat (limited to 'Test')
-rw-r--r--Test/B03print.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index 5eb94a27e..4d21bdc6c 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -203,3 +203,11 @@
  printf -- '%s\n' str
 0:initial `--' ignored to satisfy POSIX
 >str
+
+ printf '%'
+1:nothing after % in format specifier
+?(eval):printf:1: %: invalid directive
+
+ printf $'%\0'
+1:explicit null after % in format specifier
+?(eval):printf:1: %: invalid directive