Package: coreutils
Version: 9.1-1
Severity: normal

Dear Maintainer,

-- >8 --
% pr -mJ <(printf '%s\n' a b c d e f) <(printf '%s\n' a b c d e f) -n   | cat 
-sA
$
2023-04-30 01:53                                                  Page 1$
$
    1^Ia^Ia$
    2^Ib^Ib$
    3^Ic^Ic$
    4^Id^Id$
    5^Ie^Ie$
    6^If^If$
$
% pr -mJ <(printf '%s\n' a b c d e f) <(printf '%s\n' a b c d e f) -o4   | cat 
-sA
    $
$
    2023-04-30 01:53                                                  Page 1$
$
    a^Ia$
    b^Ib$
    c^Ic$
    d^Id$
    e^Ie$
    f^If$
$
-- >8 --
this is exactly what I expect from both POSIX and pr(1) so far.

However:
-- >8 --
% pr -mJ <(printf '%s\n' a b c d e f) <(printf '%s\n' a b c d e f) -o4 -n  | 
cat -sA
    $
$
    2023-04-30 01:53                                                  Page 1$
$
    ^I1   a^Ia$
    ^I2   b^Ib$
    ^I3   c^Ic$
    ^I4   d^Id$
    ^I5   e^Ie$
    ^I6   f^If$
$
-- >8 --

Where did the tab after the -o come from?
Where did the tab after the numbers go?
Where did the three spaces after the numbers come from?

Correct output for the page body is, naturally,
  "        1^Ia^Ib$"
   oooonnnnn()
resp. for each line.

Same happens in just -m mode (but with more shit between the columns).
Same happens in normal columnation
(but much worse, and only on the numbers for the first column):
-- >8 --
% { printf '%s\n' a b c d e f; printf '%s\n' a b c d e f; } | pr -2 -o4 -n   | 
cat -sA
    $
$
    2023-04-30 01:58                                                  Page 1$
$
    ^I1   a^I^I^I^I    7^Ia$
    ^I2   b^I^I^I^I    8^Ib$
    ^I3   c^I^I^I^I    9^Ic$
    ^I4   d^I^I^I^I   10^Id$
    ^I5   e^I^I^I^I   11^Ie$
    ^I6   f^I^I^I^I   12^If$
$
% { printf '%s\n' a b c d e f; printf '%s\n' a b c d e f; } | pr -2a -o4 -n   | 
cat -sA
    $
$
    2023-04-30 01:59                                                  Page 1$
$
    ^I1   a^I^I^I^I    2^Ib$
    ^I3   c^I^I^I^I    4^Id$
    ^I5   e^I^I^I^I    6^If$
    ^I7   a^I^I^I^I    8^Ib$
    ^I9   c^I^I^I^I   10^Id$
       11   e^I^I^I^I   12^If$
$
-- >8 --

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