[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    bug#65408: nl: -d doesn't use ':' as second char if a single non-ASCII char is provided
From:       Daniel Hofstetter <dhofstet () gmail ! com>
Date:       2023-08-20 12:36:07
Message-ID: CAFRQvFogEzSHt0b6=1jDNe0RaQ+eO6p2__7ecz7nO0uOyquiMA () mail ! gmail ! com
[Download RAW message or body]

Hi,

According to the documentation, the section delimiter consists of at
least two characters, and if you omit the second character when using
-d/--section-delimiter, the second character is implied to be ':'.
However, this doesn't seem to be the case in nl 9.3 if I provide a
single non-ASCII char:

$ printf "a\n=C3=A4:\nb" | nl -d=C3=A4
    1  a
    2  =C3=A4:
    3  b

If I add the ':' manually, I get the expected output:

$ printf "a\n=C3=A4:\nb" | nl -d=C3=A4:
    1  a

      b

Regards,
Daniel



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic