diff options
-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 |