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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bjartur Thorlacius <svartman95 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: NUL terminated lines
Date: Wed, 23 Feb 2011 23:25:14 +0000
> Maybe we should modify tac to add the -z option.  Would you care to write a patch?
It would be redundant, as tac -s $'\0' is equivalent.

If you want to switch between newline characters dynamically (a bad
idea, IMO) you could edit libc/stdio-common/getline.c to pass read in
the newline character from an environment variable.
More preferably, you could rewrite getline to read in self-delimeted lines.




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.