GNU bug report logs - #69807
questioning automatic -i in multicolumn pr

Previous Next

Package: coreutils;

Reported by: Douglas McIlroy <douglas.mcilroy <at> dartmouth.edu>

Date: Fri, 15 Mar 2024 05:10:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 69807 in the body.
You can then email your comments to 69807 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#69807; Package coreutils. (Fri, 15 Mar 2024 05:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Douglas McIlroy <douglas.mcilroy <at> dartmouth.edu>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 15 Mar 2024 05:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Douglas McIlroy <douglas.mcilroy <at> dartmouth.edu>
To: bug-coreutils <at> gnu.org
Subject: questioning automatic -i in multicolumn pr
Date: Thu, 14 Mar 2024 16:31:34 -0400
[Message part 1 (text/plain, inline)]
Multicolumn options in pr imply option -i (tabification). The introduction
of tabs with physical rather than logical meaning makes output that is OK
for viewing only if you have correct tab stops, and is complicated for
further processing.  It caters for obsolete equipment--typewriters, on
which tabbing was appreciably faster than spacing.

As a wish-list item I propose abolishing implicit tabification. A second
choice (that doesn't buck Posix) is to provide an option to suppress
implicit tabification. At a bare minimum, document a workaround for the
inconvenient tabs, e.g. post-processing with pr -t -e.
[Message part 2 (text/html, inline)]

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Thu, 21 Mar 2024 15:41:02 GMT) Full text and rfc822 format available.

Notification sent to Douglas McIlroy <douglas.mcilroy <at> dartmouth.edu>:
bug acknowledged by developer. (Thu, 21 Mar 2024 15:41:02 GMT) Full text and rfc822 format available.

Message #10 received at 69807-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Douglas McIlroy <douglas.mcilroy <at> dartmouth.edu>, 69807-done <at> debbugs.gnu.org
Subject: Re: bug#69807: questioning automatic -i in multicolumn pr
Date: Thu, 21 Mar 2024 15:33:19 +0000
On 14/03/2024 20:31, Douglas McIlroy wrote:
> Multicolumn options in pr imply option -i (tabification). The introduction
> of tabs with physical rather than logical meaning makes output that is OK
> for viewing only if you have correct tab stops, and is complicated for
> further processing.  It caters for obsolete equipment--typewriters, on
> which tabbing was appreciably faster than spacing.
> 
> As a wish-list item I propose abolishing implicit tabification. A second
> choice (that doesn't buck Posix) is to provide an option to suppress
> implicit tabification. At a bare minimum, document a workaround for the
> inconvenient tabs, e.g. post-processing with pr -t -e.

Good call on the documentation.  I'll add this now:

commit 91e69cd2d02f015fc296e02388e0b18a293faa56 (HEAD -> master)
Author: Pádraig Brady <P <at> draigBrady.com>
Date:   Thu Mar 21 15:26:48 2024 +0000

    doc: pr: give solution to expanding TABs in multicolumn output

    * doc/coreutils.texi (pr invocation): Explicitly state that
    multicolumn output will convert spaces to TABs, and show that
    this can be undone with the `pr -t -e` or `expand` commands.
    Suggested by Douglas McIlroy in https://bugs.gnu.org/69807

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index e36269588..37d729089 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -2636,9 +2636,11 @@ This option might well cause some lines to be truncated.>
 lines in the columns on each page are balanced.  The options @option{-e}
 and @option{-i} are on for multiple text-column output.  Together with
 @option{-J} option column alignment and line truncation is turned off.
+Since spaces are converted to TABs in multicolumn output, they can be converted
+back by further processing through @command{pr -t -e} or @command{expand}.


thanks,
Pádraig




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 19 Apr 2024 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 61 days ago.

Previous Next


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