Package: coreutils
Version: 8.32-4+b1
Version: 9.1-1
Severity: normal

Dear Maintainer,

Given
  % pr -2 -w22 -n american.med+.mwl | cat -A
what do you expect the first bit to be?

We know that (per POSIX) -n is equivalent to -n<tab>5;
we know therefore, that each column looks like
  NNNNN<tab>data
since we know we want two columns,
and the minimal separator between them is one blank,
those will be
  NNNNN<tab>data NNNNN<tab>data
  5    0    x   15    0    x
(remember that <tab> is !print),
so given -w22 we can say that
  2*(5+0+x)+1=22
thus
  x=5.5
or, indeed, 5.

So, were we to emulate this, we would expect
  % out/cmd/pr -2 -w22 -n american.med+.mwl  | cat -A
  $
  $
  2023-05-05 22:02 american.med+.mwl Page 1$
  $
  $
      1^Ia/S      57^IAbern$
      2^IA's/I    58^Iaberr$
      3^IAAC      59^Iaberr$
      4^IAache    60^Iabet/$
      5^IAaliy    61^Iabett$
      6^Iaardv    62^Iabett$
      7^IAaron    63^Iabett$
      8^Iabaci    64^Iabett$
      9^Iaback    65^Iabeya$
     10^Iabacu    66^Iabeya$
     11^Iabaft    67^Iabhor$
     12^Iabalo    68^Iabhor$
     13^Iaband    69^Iabhor$
     14^Iaband    70^Iabhor$
     15^Iaband    71^Iabhor$
     16^Iabase    72^Iabhor$
     17^Iabase    73^Iabide$
so what in the world happened to
  % pr -2 -w22 -n american.med+.mwl | cat -A
  $
  $
  2023-05-05 18:58 american.med+.mwl Page 1$
  $
  $
      1^Ia/    57   Ab$
      2^IA'    58   ab$
      3^IAA    59   ab$
      4^IAa    60   ab$
      5^IAa    61   ab$
      6^Iaa    62   ab$
      7^IAa    63   ab$
      8^Iab    64   ab$
      9^Iab    65   ab$
     10^Iab    66   ab$
     11^Iab    67   ab$
     12^Iab    68   ab$
     13^Iab    69   ab$
     14^Iab    70   ab$
     15^Iab    71   ab$
     16^Iab    72   ab$
     17^Iab    73   ab$
?

Best,
наб

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

Kernel: Linux 6.1.0-2-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-3
ii  libattr1     1:2.5.1-4
ii  libc6        2.36-9
ii  libgmp10     2:6.2.1+dfsg1-1.1
ii  libselinux1  3.4-1+b5

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to