GNU logs - #25553, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other, than 'du'?
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 27 Jan 2017 06:36:02 +0000
Resent-Message-ID: <handler.25553.B.14854989277494 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 25553 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.14854989277494
          (code B ref -1); Fri, 27 Jan 2017 06:36:02 +0000
Received: (at submit) by debbugs.gnu.org; 27 Jan 2017 06:35:27 +0000
Received: from localhost ([127.0.0.1]:46868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cX086-0001wn-Jn
	for submit <at> debbugs.gnu.org; Fri, 27 Jan 2017 01:35:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35457)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1cX085-0001wa-Iz
 for submit <at> debbugs.gnu.org; Fri, 27 Jan 2017 01:35:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cX07z-0006V8-L1
 for submit <at> debbugs.gnu.org; Fri, 27 Jan 2017 01:35:20 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34037)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1cX07z-0006V4-IG
 for submit <at> debbugs.gnu.org; Fri, 27 Jan 2017 01:35:19 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54660)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cX07y-0001Xn-LD
 for bug-coreutils@HIDDEN; Fri, 27 Jan 2017 01:35:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cX07v-0006UX-Ho
 for bug-coreutils@HIDDEN; Fri, 27 Jan 2017 01:35:18 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:42088
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1cX07v-0006Ps-8G
 for bug-coreutils@HIDDEN; Fri, 27 Jan 2017 01:35:15 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 v0R6Z3kd012534
 for <bug-coreutils@HIDDEN>; Thu, 26 Jan 2017 22:35:06 -0800
Message-ID: <588AEA17.5060702@HIDDEN>
Date: Thu, 26 Jan 2017 22:35:03 -0800
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Are there other utils that rely on tabs to align
output as much as 'du'?

What would be objections to fixing 'du' or others
that rely on such?







Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: L A Walsh <coreutils@HIDDEN>
Subject: bug#25553: Acknowledgement (How many coreutils rely on tabs to
 align things (other, than 'du'?)
Message-ID: <handler.25553.B.14854989277494.ack <at> debbugs.gnu.org>
References: <588AEA17.5060702@HIDDEN>
X-Gnu-PR-Message: ack 25553
X-Gnu-PR-Package: coreutils
Reply-To: 25553 <at> debbugs.gnu.org
Date: Fri, 27 Jan 2017 06:36:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 25553 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
25553: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25553
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other, than 'du'?
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 27 Jan 2017 22:27:01 +0000
Resent-Message-ID: <handler.25553.B25553.148555597321579 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: L A Walsh <coreutils@HIDDEN>, 25553 <at> debbugs.gnu.org
Received: via spool by 25553-submit <at> debbugs.gnu.org id=B25553.148555597321579
          (code B ref 25553); Fri, 27 Jan 2017 22:27:01 +0000
Received: (at 25553) by debbugs.gnu.org; 27 Jan 2017 22:26:13 +0000
Received: from localhost ([127.0.0.1]:48635 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXEyD-0005bz-Ir
	for submit <at> debbugs.gnu.org; Fri, 27 Jan 2017 17:26:13 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59442)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1cXEyB-0005bm-Vo
 for 25553 <at> debbugs.gnu.org; Fri, 27 Jan 2017 17:26:12 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 96CB01600B9;
 Fri, 27 Jan 2017 14:26:06 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id yCKW0q1KbZ9U; Fri, 27 Jan 2017 14:26:06 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id EB2601600DA;
 Fri, 27 Jan 2017 14:26:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id R2dfTUwDpeMO; Fri, 27 Jan 2017 14:26:05 -0800 (PST)
Received: from [192.168.1.9] (unknown [47.153.188.248])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CD8AA1600B9;
 Fri, 27 Jan 2017 14:26:05 -0800 (PST)
References: <588AEA17.5060702@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
Date: Fri, 27 Jan 2017 14:26:05 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <588AEA17.5060702@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.2 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

L A Walsh wrote:
> Are there other utils that rely on tabs to align
> output as much as 'du'?

Sure. 'ls', 'fmt', 'cut', 'cat', 'pr',....

> What would be objections to fixing 'du' or others
> that rely on such?

It would depend on the proposed change.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other,  than 'du'?
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 28 Jan 2017 02:35:02 +0000
Resent-Message-ID: <handler.25553.B25553.148557085217112 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Paul Eggert <eggert@HIDDEN>
Cc: 25553 <at> debbugs.gnu.org
Received: via spool by 25553-submit <at> debbugs.gnu.org id=B25553.148557085217112
          (code B ref 25553); Sat, 28 Jan 2017 02:35:02 +0000
Received: (at 25553) by debbugs.gnu.org; 28 Jan 2017 02:34:12 +0000
Received: from localhost ([127.0.0.1]:48703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXIqB-0004Rw-Nq
	for submit <at> debbugs.gnu.org; Fri, 27 Jan 2017 21:34:11 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:48492
 helo=Ishtar.sc.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1cXIqA-0004Rn-3q
 for 25553 <at> debbugs.gnu.org; Fri, 27 Jan 2017 21:34:10 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 v0S2XvUR037662; Fri, 27 Jan 2017 18:34:00 -0800
Message-ID: <588C0315.1070305@HIDDEN>
Date: Fri, 27 Jan 2017 18:33:57 -0800
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
References: <588AEA17.5060702@HIDDEN>
 <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
In-Reply-To: <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.2 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)


Paul Eggert wrote:
> L A Walsh wrote:
>> Are there other utils that rely on tabs to align
>> output as much as 'du'?
> 
> Sure. 'ls', 'fmt', 'cut', 'cat', 'pr',....
> 
>> What would be objections to fixing 'du' or others
>> that rely on such?
> 
> It would depend on the proposed change.
----
I'm working on some loose ends, but basically, 

First, it would default to providing no change.  ;-)

Through use of a switch it can expand the tabs to spaces
using a default of every 8th column (after 1) (using a
switch value of 'ExpandTo').

And with 2 env vars, TTY_TABSIZE & TTY_TABSET
it can re-entabulate the output to use the user's 
tabsize as related through the env vars.

The env vars cause no change in program behavior unless
the switch specifies 'AlignTo'.

I developed the 'tabout' feature in a 'tabout.c+h' file
and added it to 'du' -- but noted it was not the best way
to test, so wrote a driver-program, 'retab', to allow focus
testing on the retabbing code that does the retabbing on
files or stdin and sends the result to stdout.

...that's a rough description...

Will let you know as I finish off some loose ends and code
refactoring/tidying...







Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other, than 'du'?
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 28 Jan 2017 10:42:01 +0000
Resent-Message-ID: <handler.25553.B25553.148560009327610 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: L A Walsh <coreutils@HIDDEN>
Cc: 25553 <at> debbugs.gnu.org
Received: via spool by 25553-submit <at> debbugs.gnu.org id=B25553.148560009327610
          (code B ref 25553); Sat, 28 Jan 2017 10:42:01 +0000
Received: (at 25553) by debbugs.gnu.org; 28 Jan 2017 10:41:33 +0000
Received: from localhost ([127.0.0.1]:48796 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXQRp-0007BF-Ih
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 05:41:33 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36656)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1cXQRo-0007B3-Hs
 for 25553 <at> debbugs.gnu.org; Sat, 28 Jan 2017 05:41:32 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id DF8151600EE;
 Sat, 28 Jan 2017 02:41:26 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id uHOxI0YXnifX; Sat, 28 Jan 2017 02:41:26 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0B5C81600EF;
 Sat, 28 Jan 2017 02:41:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 2uswtu1xu97o; Sat, 28 Jan 2017 02:41:25 -0800 (PST)
Received: from [192.168.1.9] (unknown [47.153.188.248])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id C85E01600EE;
 Sat, 28 Jan 2017 02:41:25 -0800 (PST)
References: <588AEA17.5060702@HIDDEN>
 <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
 <588C0315.1070305@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <1ad50f72-abf6-56c5-c94d-db9777ff5383@HIDDEN>
Date: Sat, 28 Jan 2017 02:41:24 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <588C0315.1070305@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.2 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

L A Walsh wrote:
> I'm working on some loose ends, but basically,
> First, it would default to providing no change.  ;-)
>
> Through use of a switch it can expand the tabs to spaces
> using a default of every 8th column (after 1) (using a
> switch value of 'ExpandTo').
>
> And with 2 env vars, TTY_TABSIZE & TTY_TABSET
> it can re-entabulate the output to use the user's tabsize as related through the
> env vars.

It sounds like this could be done via 'du | expand', so why change 'du'?

Also, environment variables cause too many problems. If new functionality is 
needed here (which is not yet clear), it should be via new options.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other,  than 'du'?
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 28 Jan 2017 22:46:01 +0000
Resent-Message-ID: <handler.25553.B.148564355520744 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Paul Eggert <eggert@HIDDEN>
Cc: 25553 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.148564355520744
          (code B ref -1); Sat, 28 Jan 2017 22:46:01 +0000
Received: (at submit) by debbugs.gnu.org; 28 Jan 2017 22:45:55 +0000
Received: from localhost ([127.0.0.1]:49486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXbko-0005OU-E9
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 17:45:55 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36283)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1cXbkn-0005OI-52
 for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 17:45:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cXbke-00074n-FV
 for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 17:45:48 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58920)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1cXbke-00074j-CZ
 for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 17:45:44 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55485)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cXbka-0008Eb-LK
 for bug-coreutils@HIDDEN; Sat, 28 Jan 2017 17:45:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cXbkX-00074S-Ic
 for bug-coreutils@HIDDEN; Sat, 28 Jan 2017 17:45:40 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:48380
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1cXbkX-00074I-71
 for bug-coreutils@HIDDEN; Sat, 28 Jan 2017 17:45:37 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 v0SMjNMo048961; Sat, 28 Jan 2017 14:45:26 -0800
Message-ID: <588D1F04.9070109@HIDDEN>
Date: Sat, 28 Jan 2017 14:45:24 -0800
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
References: <588AEA17.5060702@HIDDEN>
 <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
 <588C0315.1070305@HIDDEN>
 <1ad50f72-abf6-56c5-c94d-db9777ff5383@HIDDEN>
In-Reply-To: <1ad50f72-abf6-56c5-c94d-db9777ff5383@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)



Paul Eggert wrote:
> L A Walsh wrote:
>> I'm working on some loose ends, but basically,
>> First, it would default to providing no change.  ;-)
>>
>> Through use of a switch it can expand the tabs to spaces
>> using a default of every 8th column (after 1) (using a
>> switch value of 'ExpandTo').
>>
>> And with 2 env vars, TTY_TABSIZE & TTY_TABSET
>> it can re-entabulate the output to use the user's tabsize as related 
>> through the
>> env vars.
> 
> It sounds like this could be done via 'du | expand', so why change 'du'?
> 
> Also, environment variables cause too many problems. If new 
> functionality is needed here (which is not yet clear), it should be via 
> new options.
---
	The idea would be to have it be transparent. Adding
on various output filters is hardly transparent.  So would you 
care to show me how you would invoke expand to change 'du's 
tab-output to that on my output device (terminal seems a bit of
a misnomer these days), but it is a tty-type window compatible
with xterm, the linux console, vt100's/vt102's as well some 
standards.

	As for env-vars.  What problems are you envisioning.
As I mentioned, both env-vars and program options are required --
they serve different purposes.  Alternatively, you could have
settings files (i.e. /etc/gnurc & "~/.gnurc") that could store
settings designed to apply across multiple tools, but like the
ENV settings I'm conceiving of would be like the envvar "TERM"
or an LC_CTYPE to describe the output device's character encoding.

	Indeed, in this case, TTY_TAB settings are specific
to a person's terminal -- just like TERM and LC_CTYPE

	What type of problems outweighing the benefits 
do you see with env vars like TERM and LC_CTYPE.

	As for 'expand' handling the job -- how would
expand convert tabstops from 'du' into the tabstops used by
an arbitrary terminal?  For that matter, since directory and
file sizes often exceed 8-characters forcing du's output 
to not align, how can a user have 'du' align it's columns
automatically, as my additions can do?









Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other, than 'du'?
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sun, 29 Jan 2017 00:21:02 +0000
Resent-Message-ID: <handler.25553.B25553.14856492219678 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: L A Walsh <coreutils@HIDDEN>
Cc: 25553 <at> debbugs.gnu.org
Received: via spool by 25553-submit <at> debbugs.gnu.org id=B25553.14856492219678
          (code B ref 25553); Sun, 29 Jan 2017 00:21:02 +0000
Received: (at 25553) by debbugs.gnu.org; 29 Jan 2017 00:20:21 +0000
Received: from localhost ([127.0.0.1]:49535 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXdEC-0002W2-Mu
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 19:20:20 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40330)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1cXdEA-0002Vo-LH
 for 25553 <at> debbugs.gnu.org; Sat, 28 Jan 2017 19:20:19 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 62BEC1600E6;
 Sat, 28 Jan 2017 16:20:12 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id w-4Son_pA9uJ; Sat, 28 Jan 2017 16:20:11 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 56FFE1600ED;
 Sat, 28 Jan 2017 16:20:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id CQ4ppIMXqYvu; Sat, 28 Jan 2017 16:20:11 -0800 (PST)
Received: from [192.168.1.9] (unknown [47.153.188.248])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2B4BB1600E6;
 Sat, 28 Jan 2017 16:20:11 -0800 (PST)
References: <588AEA17.5060702@HIDDEN>
 <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
 <588C0315.1070305@HIDDEN>
 <1ad50f72-abf6-56c5-c94d-db9777ff5383@HIDDEN>
 <588D1F04.9070109@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <d8562f90-1aef-3f8c-77ea-9b42acc86926@HIDDEN>
Date: Sat, 28 Jan 2017 16:20:07 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <588D1F04.9070109@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.2 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

L A Walsh wrote:
>     The idea would be to have it be transparent. Adding
> on various output filters is hardly transparent.

Nor is having behavior depend on environment variables.

>     As for env-vars.  What problems are you envisioning.

Shell scripts might stop working because the environment variables are not set 
up in the usual or desired way. This is a common problem with other environment 
variables. In the past, we've relied on the environment too often for 
relatively-unimportant things. We should not repeat this mistake.

>     As for 'expand' handling the job -- how would
> expand convert tabstops from 'du' into the tabstops used by
> an arbitrary terminal?  For that matter, since directory and
> file sizes often exceed 8-characters forcing du's output to not align, how can a
> user have 'du' align it's columns
> automatically, as my additions can do?

Send du's output to a file, look for the longest number in the file, and adjust 
column width accordingly. Whatever tabstops you like, you can tell to 'expand'. 
Expanding tabs is the job of 'expand', not of every program that outputs tabs.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 29 Jan 2017 00:20:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 19:20:49 2017
Received: from localhost ([127.0.0.1]:49538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXdEe-0002Wg-WF
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2017 19:20:49 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40366)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1cXdEd-0002WT-0M
 for control <at> debbugs.gnu.org; Sat, 28 Jan 2017 19:20:47 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 98B851600E6
 for <control <at> debbugs.gnu.org>; Sat, 28 Jan 2017 16:20:41 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id hr4BX8iHqWfe for <control <at> debbugs.gnu.org>;
 Sat, 28 Jan 2017 16:20:41 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id EC0001600ED
 for <control <at> debbugs.gnu.org>; Sat, 28 Jan 2017 16:20:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id HA7_kaxHv6mV for <control <at> debbugs.gnu.org>;
 Sat, 28 Jan 2017 16:20:40 -0800 (PST)
Received: from [192.168.1.9] (unknown [47.153.188.248])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D1A8A1600E6
 for <control <at> debbugs.gnu.org>; Sat, 28 Jan 2017 16:20:40 -0800 (PST)
To: control <at> debbugs.gnu.org
From: Paul Eggert <eggert@HIDDEN>
Subject: 25553 is wishlist
Organization: UCLA Computer Science Department
Message-ID: <4b9499dc-af12-eb9e-db10-a3923adef92f@HIDDEN>
Date: Sat, 28 Jan 2017 16:20:40 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.2 (---)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

severity 25553 wishlist




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other,  than 'du'?
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sun, 29 Jan 2017 06:14:01 +0000
Resent-Message-ID: <handler.25553.B.148567041121093 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Paul Eggert <eggert@HIDDEN>
Cc: 25553 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.148567041121093
          (code B ref -1); Sun, 29 Jan 2017 06:14:01 +0000
Received: (at submit) by debbugs.gnu.org; 29 Jan 2017 06:13:31 +0000
Received: from localhost ([127.0.0.1]:49620 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cXijz-0005U9-9W
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2017 01:13:31 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45675)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1cXijx-0005Tt-7T
 for submit <at> debbugs.gnu.org; Sun, 29 Jan 2017 01:13:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cXijr-0005Ml-5R
 for submit <at> debbugs.gnu.org; Sun, 29 Jan 2017 01:13:24 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46604)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1cXijr-0005Md-21
 for submit <at> debbugs.gnu.org; Sun, 29 Jan 2017 01:13:23 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36639)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cXijp-0005BM-Pd
 for bug-coreutils@HIDDEN; Sun, 29 Jan 2017 01:13:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1cXijk-0005Lq-Q0
 for bug-coreutils@HIDDEN; Sun, 29 Jan 2017 01:13:21 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:45606
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1cXijk-0005LO-JE
 for bug-coreutils@HIDDEN; Sun, 29 Jan 2017 01:13:16 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 v0T6D1JT093266; Sat, 28 Jan 2017 22:13:04 -0800
Message-ID: <588D87EE.5000108@HIDDEN>
Date: Sat, 28 Jan 2017 22:13:02 -0800
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
References: <588AEA17.5060702@HIDDEN>
 <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
 <588C0315.1070305@HIDDEN>
 <1ad50f72-abf6-56c5-c94d-db9777ff5383@HIDDEN>
 <588D1F04.9070109@HIDDEN>
 <d8562f90-1aef-3f8c-77ea-9b42acc86926@HIDDEN>
In-Reply-To: <d8562f90-1aef-3f8c-77ea-9b42acc86926@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)



Paul Eggert wrote:
> L A Walsh wrote:
>>     The idea would be to have it be transparent. Adding
>> on various output filters is hardly transparent.
> 
> Nor is having behavior depend on environment variables.
---
	The behavior isn't dependent on environment variables.
The behavior is selected by the run-time switch values.

	The run-time switch, like ls's --color flag get color
values from LS_COLORS (which came from the user's TERM settings).
There, you have core utils relying on a 2nd ENV var to cache the
results of the 1st (TERM) env var.



>>     As for env-vars.  What problems are you envisioning.
> 
> Shell scripts might stop working because the environment variables are 
> not set up in the usual or desired way.
---
	This is already a problem with functions and aliases as well
as PATH differences.  Though, for that matter, scripts *RELY* 
on environment variables already.  This usage could conceivable be
no different than the case of 'ls' altering its screen output if
output is not used in a script.  How would that not address your concern?


> This is a common problem with 
> other environment variables. In the past, we've relied on the 
> environment too often for relatively-unimportant things. We should not 
> repeat this mistake.
----
	I've never had the problem, but what mistakes are you claiming
were made by use of environment variables for TERMinal settings, character
set settings or language settings?  In fact, doesn't gnu make heavy use
of LC_specific variables -- and would fail miserably in localization if
those variables were disallowed?

	You can't argue that there are no valid uses for ENV vars.
At the same time, you skirted the issue of using system-wide and per-user
config files which might also be used for similar purpose.



>>     As for 'expand' handling the job -- how would
>> expand convert tabstops from 'du' into the tabstops used by
>> an arbitrary terminal?  For that matter, since directory and
>> file sizes often exceed 8-characters forcing du's output to not align, 
>> how can a user have 'du' align it's columns
>> automatically, as my additions can do?
> 
> Send du's output to a file,
----

	And if the program doesn't generate the same output
to a file as to a 'TTY'?  However, this is for TTY-output 
devices -- it's not intended for inter-program communications.
In fact, as you point out, that should likely be excluded by default.  

	You mention 'ls' -- as an example of another tab-using
program.  How can I send ls's default output through a filter
and have it be the same as to a TTY?  By default -- one can't.
The same happens for users of Gnu's libc.  It, also dumps output 
to a terminal that, by default, is not redirectable. 



> look for the longest number in the file, and 
> adjust column width accordingly. Whatever tabstops you like, you can 
> tell to 'expand'. Expanding tabs is the job of 'expand', not of every 
> program that outputs tabs.
----
	Expanding tabs, for *some* gnu programs, could be done w/expand, 
but you didn't mention how the output would be re-encoded for a user's
tab settings on output, not to mention how you would redirect
'ls's output through a filter or to a file to any effect.








Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#25553: How many coreutils rely on tabs to align things (other, than 'du'?
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 30 Jan 2017 23:57:02 +0000
Resent-Message-ID: <handler.25553.B.14858206223706 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 25553
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: L A Walsh <coreutils@HIDDEN>
Cc: 25553 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.14858206223706
          (code B ref -1); Mon, 30 Jan 2017 23:57:02 +0000
Received: (at submit) by debbugs.gnu.org; 30 Jan 2017 23:57:02 +0000
Received: from localhost ([127.0.0.1]:51486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cYLoj-0000xe-LM
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2017 18:57:01 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42932)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1cYLoi-0000xC-2r
 for submit <at> debbugs.gnu.org; Mon, 30 Jan 2017 18:57:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1cYLoc-0003yp-BO
 for submit <at> debbugs.gnu.org; Mon, 30 Jan 2017 18:56:55 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39278)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <eggert@HIDDEN>) id 1cYLoc-0003yl-8D
 for submit <at> debbugs.gnu.org; Mon, 30 Jan 2017 18:56:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33899)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1cYLob-0000SI-2y
 for bug-coreutils@HIDDEN; Mon, 30 Jan 2017 18:56:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1cYLoX-0003yC-6v
 for bug-coreutils@HIDDEN; Mon, 30 Jan 2017 18:56:53 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39154)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <eggert@HIDDEN>) id 1cYLoX-0003xx-12
 for bug-coreutils@HIDDEN; Mon, 30 Jan 2017 18:56:49 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id B048A160076;
 Mon, 30 Jan 2017 15:56:45 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id LBcMJ5p2yfkH; Mon, 30 Jan 2017 15:56:45 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 06A211600AA;
 Mon, 30 Jan 2017 15:56:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 8NLSIdoQa-pb; Mon, 30 Jan 2017 15:56:44 -0800 (PST)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id E40CC1600A8;
 Mon, 30 Jan 2017 15:56:44 -0800 (PST)
References: <588AEA17.5060702@HIDDEN>
 <a73c8729-b2b4-cc08-c8b2-11b97aa27e87@HIDDEN>
 <588C0315.1070305@HIDDEN>
 <1ad50f72-abf6-56c5-c94d-db9777ff5383@HIDDEN>
 <588D1F04.9070109@HIDDEN>
 <d8562f90-1aef-3f8c-77ea-9b42acc86926@HIDDEN>
 <588D87EE.5000108@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <d222efd6-5614-3ac7-6b7b-d8ba0294ace6@HIDDEN>
Date: Mon, 30 Jan 2017 15:56:33 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <588D87EE.5000108@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

On 01/28/2017 10:13 PM, L A Walsh wrote:
>
>
>     This is already a problem

Of course. All I am saying is that we should not make it worse.

> you skirted the issue of using system-wide and per-user
> config files which might also be used for similar purpose.

That's even worse. Coreutils doesn't do that now, thank goodness.

> How can I send ls's default output through a filter
> and have it be the same as to a TTY?

'ls -C'.

> you didn't mention how the output would be re-encoded for a user's
> tab settings on output

That could be the job of 'expand'. The user's tab settings can be 
specified as arguments to 'expand'. If 'expand' doesn't have the desired 
functionality now, perhaps we should improve 'expand'. But we should not 
be modifying every program to do expansion; just 'expand'. That's the 
software tools design philosophy.





Last modified: Tue, 31 Jan 2017 00:00:02 UTC

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