GNU bug report logs - #17800
seq weirdness with -0

Previous Next

Package: coreutils;

Reported by: Rasmus Villemoes <rv <at> rasmusvillemoes.dk>

Date: Wed, 18 Jun 2014 11:57:03 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Rasmus Villemoes <rv <at> rasmusvillemoes.dk>
To: 17800 <at> debbugs.gnu.org
Cc: Bernhard Voelker <mail <at> bernhard-voelker.de>, P <at> draigBrady.com
Subject: bug#17800: seq weirdness with -0
Date: Wed, 18 Jun 2014 21:10:50 +0200
Bernhard Voelker <mail <at> bernhard-voelker.de> writes:

> On 06/18/2014 03:39 PM, Pádraig Brady wrote:
>> Subject: [PATCH] seq: fix incorrect output with start or end of -0
>
> LGTM - although I'm still wondering what's the use case
> behind a negative Null "-0". ;-)

I agree it is unlikely anyone would write -0 explicitly, but one could
imagine a script doing

    seq -$n $m | ...

where the preceding code sets $n and $m to be some non-negative integers.

Thanks for the quick response.

Rasmus





This bug report was last modified 11 years and 33 days ago.

Previous Next


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