GNU bug report logs - #40242
n as delimiter alias

Previous Next

Package: sed;

Reported by: Oğuz <oguzismailuysal <at> gmail.com>

Date: Thu, 26 Mar 2020 15:31:02 UTC

Severity: normal

Tags: confirmed

Merged with 40239

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Oğuz <oguzismailuysal <at> gmail.com>
To: 40242 <at> debbugs.gnu.org
Subject: bug#40242: n as delimiter alias
Date: Thu, 26 Mar 2020 07:30:16 +0200
[Message part 1 (text/plain, inline)]
$ sed --version
sed (GNU sed) 4.7
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
Paolo Bonzini, Jim Meyering, and Assaf Gordon.
GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed <at> gnu.org>.

While '\t' matches a literal 't' when 't' is the delimiter, '\n' does not
match 'n' when 'n' is the delimiter. See:

$ echo t | sed 'st\ttt' | xxd
00000000: 0a                                       .
$
$ echo n | sed 'sn\nnn' | xxd
00000000: 6e0a

Is this a bug or is there a sound logic behind this?


-- 
Oğuz
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 294 days ago.

Previous Next


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