From dc1f3aae60d08ea4a3856299f85b2ed7c110508b Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 14 Dec 2016 11:01:09 -0800 Subject: 40179: fix handling of "printf -" and "printf --" unposted: regression test for 40179 / 37467 --- Test/B03print.ztst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Test/B03print.ztst') 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. -- cgit 1.4.1