diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-12-14 11:01:09 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-12-14 11:01:09 -0800 |
commit | dc1f3aae60d08ea4a3856299f85b2ed7c110508b (patch) | |
tree | 1a16772ffee6acdb2d8b77258427be7ec53c7013 /Test | |
parent | 5f2661376d686401a42aa15e5e3cbb6ec86a8f6c (diff) | |
download | zsh-dc1f3aae60d08ea4a3856299f85b2ed7c110508b.tar.gz zsh-dc1f3aae60d08ea4a3856299f85b2ed7c110508b.tar.xz zsh-dc1f3aae60d08ea4a3856299f85b2ed7c110508b.zip |
40179: fix handling of "printf -" and "printf --"
unposted: regression test for 40179 / 37467
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B03print.ztst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst index 3f9a4046d..7a43f9ca2 100644 --- a/Test/B03print.ztst +++ b/Test/B03print.ztst @@ -322,3 +322,17 @@ typeset -p foo 0:printf to an array variable without format string reuse >typeset foo=string + + printf - + printf - - + printf -- + printf -- - + printf -- -- + printf -x -v foo + # Final print for newline on stdout + print +0:regression test of printf with assorted ambiguous options or formats +>------x +?(eval):printf:3: not enough arguments +F:There is some question whether "printf --" should be an error as above, +F:or should treat "--" as the format string. Bash agrees on the error. |