diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2005-06-17 08:38:51 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2005-06-17 08:38:51 +0000 |
commit | 7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa (patch) | |
tree | a72f6be5b26b3faa30cbd9e90278a25924e214a0 | |
parent | 14bfaab3efce9e76bfe589a4a6c000bffe6e1f1b (diff) | |
download | zsh-7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa.tar.gz zsh-7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa.tar.xz zsh-7ba32bbc26fafa69f66fd2ea15e3053cd9d46ffa.zip |
add test for 21352
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Test/B03print.ztst | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 59aebac9f..84c4ce052 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-17 Oliver Kiddle <opk@zsh.org> + + * 21352: Harald van Dijk: Src/builtin.c: handle null after % in + printf format specifier + + * unposted: Test/B03print.ztst: add test for 21352 + 2005-06-16 Clint Adams <clint@zsh.org> * 21351: Completion/X/Command/_vnc: complete for xvnc4viewer and 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 |