Package: coreutils
Version: 9.1-1
Severity: normal

Dear Maintainer,

I've extracted the following from a break-down
I've been having for the past three hours (annotated):
-- >8 --
$ seq 90 110 | cat -n
     1  90     xx00
     2  91
     3  92
     4  93
     5  94
     6  95     xx01
     7  96
     8  97
     9  98
    10  99
    11  100    xx02
    12  101
    13  102
    14  103
    15  104
    16  105
    17  106
    18  107
    19  108
    20  109
    21  110
-- >8 --

For the presented input, both of the following constructs are equivalent:
  csplit - /10/-5 %10%
  csplit - /95/   %10%

And yet:
-- >8 --
$ rm xx*; seq 90 110  | csplit - /10/-5 %10%; head -n9999 xx0*
15
40
==> xx00 <==
90
91
92
93
94

==> xx01 <==
101
102
103
104
105
106
107
108
109
110
$ rm xx*; seq 90 110  | csplit - /95/ %10%; head -n9999 xx0*
15
44
==> xx00 <==
90
91
92
93
94

==> xx01 <==
100
101
102
103
104
105
106
107
108
109
110
-- >8 --

Additionally to the triviality of this observation,
NetBSD agrees with my assessment.

Best,
наб

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: amd64, i386

Kernel: Linux 6.0.0-6-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1      2.3.1-2
ii  libattr1     1:2.5.1-3
ii  libc6        2.36-7
ii  libgmp10     2:6.2.1+dfsg1-1.1
ii  libselinux1  3.4-1+b4

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to