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


View this message in rfc822 format

From: Hallvard B Furuseth <h.b.furuseth <at> usit.uio.no>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 9116 <at> debbugs.gnu.org
Subject: bug#9116: Bug in unexpand --all of <spaces><tab>
Date: Tue, 19 Jul 2011 12:42:22 +0200
Pádraig Brady writes:
>On 19/07/11 08:13, Hallvard B Furuseth wrote:
>> 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.

Duh, sorry.  I read "...immediately preceding a tab stop"
as "...immediately preceding a <tab>".

The manpage about this is wrong too:

  "-a, --all     convert all blanks, instead of just initial blanks"

No, not single spaces that happen to be just before a tab stop.

-- 
Hallvard




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

Previous Next


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