bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17422: dd giving different results between UNIX and LINUX


From: Bernhard Voelker
Subject: bug#17422: dd giving different results between UNIX and LINUX
Date: Wed, 07 May 2014 17:05:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0



On 05/07/2014 03:24 PM, Paul Eggert wrote:
Thanks for those improvements to the patch; please push.

Thanks for the review.

Furthermore, I was puzzled that there doesn't seem to be
an easier way to create the 0..255 file as this:

  printf $(for i in $(seq 0 255); do printf '\\%03o' $i; done; echo '');

At least, the following would avoid the for-loop:

diff --git a/tests/dd/ascii.sh b/tests/dd/ascii.sh
index f2cc375..da6e128 100755
--- a/tests/dd/ascii.sh
+++ b/tests/dd/ascii.sh
@@ -22,7 +22,7 @@ print_ver_ dd
 {
   # Two lines, EBCDIC " A A" and " A  ", followed by all the bytes in order.
   printf '\100\301\100\301\100\301\100\100' &&
-  printf $(for i in $(seq 0 255); do printf '\\%03o' $i; done; echo '');
+  printf $(printf "\\%03o" $(seq 0 255 ));
 } >in || framework_failure_

 {

WDYT?

Thanks & have a nice day,
Berny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]