From 7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 17 Jun 2005 08:38:51 +0000 Subject: add test for 21352 --- Test/B03print.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1