GNU bug report logs - #9116
Bug in unexpand --all of <spaces><tab>

Previous Next

Package: coreutils;

Reported by: Hallvard B Furuseth <h.b.furuseth <at> usit.uio.no>

Date: Mon, 18 Jul 2011 12:43:03 UTC

Severity: normal

Fixed in version 8.13

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

Bug is archived. No further changes may be made.

Full log


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

From: Pádraig Brady <P <at> draigBrady.com>
To: Hallvard B Furuseth <h.b.furuseth <at> usit.uio.no>
Cc: 9116 <at> debbugs.gnu.org
Subject: Re: bug#9116: Bug in unexpand --all of <spaces><tab>
Date: Tue, 19 Jul 2011 10:41:18 +0100
On 19/07/11 08:13, Hallvard B Furuseth wrote:
> Pádraig Brady writes:
>> Actually POSIX is quite specific and my reading
>> is that a space before tabstop should be preserved
>> iff it's the only blank before tabstop and it
>> isn't followed by another blank.
>>
>> In that sense, both i18n patched unexpand
>> and current coreutils get this wrong.
> 
> Coreutils 5.12 gets that right in my test:
> 1st output line is "1234567<space><tab>1".

That's incorrect according to POSIX.
The space should be converted to tab as
it's followed by a blank.

> But now that you mention it, an option to never
> output the sequence <space><tab> would be nice.

From my reading of POSIX, that's what it specifies.

cheers,
Pádraig.




This bug report was last modified 13 years and 363 days ago.

Previous Next


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