GNU bug report logs - #7362
dd strangeness

Previous Next

Package: coreutils;

Reported by: Lucia Rotger <lucia <at> aircomp.aero>

Date: Wed, 10 Nov 2010 10:26:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #45 received at 7362 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 7362 <at> debbugs.gnu.org
Subject: Re: bug#7362: dd strangeness
Date: Mon, 28 Feb 2011 09:41:11 +0000
[Message part 1 (text/plain, inline)]
On 25/02/11 17:29, Paul Eggert wrote:
> On 02/25/2011 04:19 AM, Pádraig Brady wrote:
> 
>> Attached is a proposed solution to this.
> 
> My kneejerk reaction is that it tries to do too much inferring,
> and ends up being more complicated than giving the user more control.
> 
> If we're going to change the default to be not compatible with POSIX,
> we need to give the user a way to get the POSIX behavior, something
> that's less subtle than POSIXLY_CORRECT.  I suggest that we add
> a new option that is the inverse of "fullblock".  We can call it
> "partblock", say.
> 
> Then, we can say that the default is "fullblock" normally, but it is
> "partblock" if POSIXLY_CORRECT and if bs= is given and if no conversions
> other than sync, noerror, and notrunk are given.
> 
> Anyway, I'm just thinking out loud to some extent, and further
> comments are welcome.

Hmm, it's better to be explicit but I think defaulting to "fullblock"
is too risky. As an interim step at least, how about just warning
as per the attached.

cheers,
Pádraig.
[dd-fullblock.diff (text/x-patch, attachment)]

This bug report was last modified 14 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.