From 5d431d1e1f9172587775c00a07b767f9b544cb91 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 28 Mar 2015 13:22:27 -0500 Subject: Fix printf bug (%.s should be %.0s not %s) reported by Isabella Parakiss. --- tests/printf.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/printf.test') diff --git a/tests/printf.test b/tests/printf.test index 5cbefb59..20d5982d 100644 --- a/tests/printf.test +++ b/tests/printf.test @@ -57,3 +57,5 @@ testing "printf '%u %u' -1 -2" "$PRINTF '%u %u' -1 -2" \ testing "printf '%x %X' 78 79" "$PRINTF '%x %X' 78 79" "4e 4F" "" "" testing "printf '%g %G' 78 79" "$PRINTF '%g %G' 78 79" "78 79" "" "" testing "printf '%s %s' 78 79" "$PRINTF '%s %s' 78 79" "78 79" "" "" + +testing "printf %.s acts like %.0s" "$PRINTF %.s_ 1 2 3 4 5" "_____" "" "" -- cgit v1.2.3