From f906363500b010877ce1ac53926974168c34048e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 14 Jun 2023 16:45:24 -0500 Subject: [PATCH] Add test for dd val=2x3x4 posix syntax. I didn't add it to dd's help because $((MATH)) exists in modern shells, but coreutils' mailing list got a bug report about having broken it, so somebody's script somewhere still cares... --- tests/dd.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/dd.test b/tests/dd.test index 7d7b794b..07e77b48 100644 --- a/tests/dd.test +++ b/tests/dd.test @@ -15,6 +15,8 @@ testing "count=2" "dd if=input count=2 ibs=1 $opt" "hi" "high\n" "" testing "count= 2" "dd if=input 'count= 2' ibs=1 $opt" "hi" "high\n" "" toyonly testing "count=0x2" "dd if=input 'count=0x2' ibs=1 $opt" "hi" \ "high\n" "" +testing 'posix 2x3x4' "dd if=input count=2x3x4 ibs=1 $opt" \ + 'abcdefghijklmnopqrstuvwx' 'abcdefghijklmnopqrstuvwxyz' '' testing "count=-2" "dd if=input 'count=-2' ibs=1 2>/dev/null || echo errored" "errored\n" "" "" testing "if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" "" -- 2.39.2