From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaRyH-0003d7-SR for guix-patches@gnu.org; Sat, 13 Jan 2018 15:00:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaRyE-0002yr-Np for guix-patches@gnu.org; Sat, 13 Jan 2018 15:00:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47251) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaRyE-0002yT-KV for guix-patches@gnu.org; Sat, 13 Jan 2018 15:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eaRyE-0005hR-AE for guix-patches@gnu.org; Sat, 13 Jan 2018 15:00:02 -0500 Subject: [bug#30053] [PATCH 1/3] Improve appearance of tabular output. Resent-Message-ID: MIME-Version: 1.0 In-Reply-To: <87fu7b2old.fsf@gnu.org> References: <878td4nksy.fsf@gnu.org> <87fu7b2old.fsf@gnu.org> From: Steve Sprang Date: Sat, 13 Jan 2018 11:59:14 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Roel Janssen Cc: 30053@debbugs.gnu.org On Fri, Jan 12, 2018 at 5:28 AM, Roel Janssen wrote: > If we use GNU awk instead of cut, I think any whitespace will work: > $ guix package -A | awk '{ print $1 "@" $2 }' > > And then we can optimize the output reading experience for our users > instead of for the 'cut' program. I like this proposal, unless there is a strong reason to prefer 'cut'? We would obviously need to update relevant scripts and documentation. It might also break any user scripts relying on the current behavior. Since awk can more flexibly separate fields (versus cut's single character delimiter) I could modify this patch to separate columns with one or two spaces instead of tabs. This generally produces a table with shorter line lengths and a neater presentation. -Steve