GNU bug report logs - #8103
tac RFE: accept -z, --zero-terminated option

Previous Next

Package: coreutils;

Reported by: Bjartur Thorlacius <svartman95 <at> gmail.com>

Date: Wed, 23 Feb 2011 23:26:02 UTC

Severity: wishlist

Tags: easy, notabug

Full log


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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Jim Meyering <jim <at> meyering.net>
Cc: Bjartur Thorlacius <svartman95 <at> gmail.com>, 8103 <at> debbugs.gnu.org
Subject: Re: bug#8103: NUL terminated lines
Date: Fri, 25 Feb 2011 19:14:31 +0100
Jim Meyering <jim <at> meyering.net> writes:

> Bjartur Thorlacius wrote:
>> On 2/24/11, Jim Meyering <jim <at> meyering.net> wrote:
>>> With GNU tac, that has never worked:
>>>
>>>     $ tac -s ''
>>>     tac: separator cannot be empty
>>>
>> NUL!=the empty string.
>
> tac treats them the same way.

Actually the shell does.  $'\0' and '' are indistinguishable once passed
as argument.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 6 years and 252 days ago.

Previous Next


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