Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Rogier Wolff
On Mon, Jan 28, 2008 at 10:50:23PM -0700, Bob Proulx wrote: Michael Stone wrote: Rogier Wolff wrote: dd if=somebigfile | dd count=100 of=/dev/null both dd's should report that they copied 100 records. This worked in debian sarge. Debian Etch, the first dd stopped reporting the

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Rogier Wolff
On Tue, Jan 29, 2008 at 03:12:24PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 08:01:45AM -0500, Michael Stone wrote: I figured there'd be some piece of posix at the bottom of it. :) I wonder if the documentation should better reflect that. (The

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Jim Meyering
Rogier Wolff [EMAIL PROTECTED] wrote: +and when @command{dd} completes normally or is killed by the [EMAIL PROTECTED] signal, it outputs the final statistics. Which is not correct, as the stats are also printed upon write error, like ENOSPC. (as we all agree the standards require). It

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Bob Proulx
$ dd if=/dev/zero | dd count=100 of=/dev/null Of course, the two dd's are unneccesary, and this could be done with one dd. In practise, the consumer (second dd) is another program that exits when it's had enough data. The output of (the first) dd is then used to extract the approximate

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Jim Meyering
Rogier Wolff [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 01:27:57PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: ... Let me reiterate: It is the first dd that is misbehaving, when it recieves a write error and SIGPIPE, it simply exits instead of reporting the

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Jim Meyering
Rogier Wolff [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 08:01:45AM -0500, Michael Stone wrote: I figured there'd be some piece of posix at the bottom of it. :) I wonder if the documentation should better reflect that. (The info page says only that when dd completes it outputs the final

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Rogier Wolff
+and when @command{dd} completes normally or is killed by the [EMAIL PROTECTED] signal, it outputs the final statistics. Which is not correct, as the stats are also printed upon write error, like ENOSPC. (as we all agree the standards require). Roger. -- ** [EMAIL PROTECTED] **

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Jim Meyering
Michael Stone [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 01:27:57PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: ... Let me reiterate: It is the first dd that is misbehaving, when it recieves a write error and SIGPIPE, it simply exits instead of reporting the stats.

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Rogier Wolff
On Tue, Jan 29, 2008 at 08:01:45AM -0500, Michael Stone wrote: I figured there'd be some piece of posix at the bottom of it. :) I wonder if the documentation should better reflect that. (The info page says only that when dd completes it outputs the final statistics; maybe something like

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Michael Stone
On Tue, Jan 29, 2008 at 01:27:57PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: ... Let me reiterate: It is the first dd that is misbehaving, when it recieves a write error and SIGPIPE, it simply exits instead of reporting the stats. Thanks for the report, but that

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Rogier Wolff
On Tue, Jan 29, 2008 at 01:27:57PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: ... Let me reiterate: It is the first dd that is misbehaving, when it recieves a write error and SIGPIPE, it simply exits instead of reporting the stats. Thanks for the report, but that

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Jim Meyering
Rogier Wolff [EMAIL PROTECTED] wrote: ... Let me reiterate: It is the first dd that is misbehaving, when it recieves a write error and SIGPIPE, it simply exits instead of reporting the stats. Thanks for the report, but that behavior is required by POSIX. dd must handle SIGINT the way you want,

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Rogier Wolff
On Tue, Jan 29, 2008 at 03:33:01PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 01:27:57PM +0100, Jim Meyering wrote: Rogier Wolff [EMAIL PROTECTED] wrote: ... Let me reiterate: It is the first dd that is misbehaving, when it recieves a

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-29 Thread Jim Meyering
Rogier Wolff [EMAIL PROTECTED] wrote: You'll need to come up with much better arguments (that probably do not exist) to make me change dd to be non-compliant in this respect. In my interpretation of the quoted part of the standard, dd has become non-compliant, by not reporting the statistics

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-28 Thread Bob Proulx
Michael Stone wrote: Rogier Wolff wrote: dd if=somebigfile | dd count=100 of=/dev/null both dd's should report that they copied 100 records. This worked in debian sarge. Debian Etch, the first dd stopped reporting the number of records copied. The script I wrote then stopped

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-26 Thread Michael Stone
On Wed, Jan 16, 2008 at 11:26:05AM +0100, Rogier Wolff wrote: dd if=somebigfile | dd count=100 of=/dev/null both dd's should report that they copied 100 records. This worked in debian sarge. Debian Etch, the first dd stopped reporting the number of records copied. The script I wrote

Bug#461049: coreutils: dd no longer reports xx+yy records in|out after sigpipe.

2008-01-16 Thread Rogier Wolff
Package: coreutils Version: 5.97-5.3 Severity: normal -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.22bm Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)