From 4eb46e1be6d88eaf077252ce93127ebf00aa8ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 24 Mar 2021 16:01:42 +0100 Subject: dd: support iflag=count_bytes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It allows passing amount of bytes in the count= function old new delta packed_usage 33599 33617 +18 static.iflag_words 29 41 +12 dd_main 1601 1607 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 36/0) Total: 36 bytes Signed-off-by: Rafał Miłecki Signed-off-by: Denys Vlasenko --- testsuite/dd/dd-count-bytes | 1 + 1 file changed, 1 insertion(+) create mode 100644 testsuite/dd/dd-count-bytes (limited to 'testsuite') diff --git a/testsuite/dd/dd-count-bytes b/testsuite/dd/dd-count-bytes new file mode 100644 index 000000000..0730cba5e --- /dev/null +++ b/testsuite/dd/dd-count-bytes @@ -0,0 +1 @@ +test "$(echo I WANT | busybox dd count=3 iflag=count_bytes 2>/dev/null)" = "I W" -- cgit v1.2.1