From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: small hack to prettify output of list-installed Date: Fri, 19 Jul 2019 10:32:58 +0200 Message-ID: <20190719103258.61378b09@scratchpost.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/hOP7qz7jKm5Z6Hxnvd9MFlS"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51996) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoOKA-0004c6-MO for guix-devel@gnu.org; Fri, 19 Jul 2019 04:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoOK9-0007an-KE for guix-devel@gnu.org; Fri, 19 Jul 2019 04:33:06 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:41730) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hoOK9-0007Za-CS for guix-devel@gnu.org; Fri, 19 Jul 2019 04:33:05 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Robert Vollmert Cc: guix-devel@gnu.org --Sig_/hOP7qz7jKm5Z6Hxnvd9MFlS Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Fri, 19 Jul 2019 09:46:15 +0200 Robert Vollmert wrote: > here=E2=80=99s a small patch that calls =E2=80=9Ccolumn -t=E2=80=9D on th= e output of > `guix package --list-installed`. Probably not suitable for > inclusion since I assume the guix scripts shouldn=E2=80=99t depend > on `util-linux`, but I find it quite nice to have, so maybe > it=E2=80=99s useful to someone else. For better or for worse we are on UNIX. UNIX works best if programs don't do weird special-processing like that by default - in order not to break whatever pipe processing the user adds (IMO we do way too much processing on our own already). The user can always do guix ... | column -t in a shell (or a guix wrapper shell script), right? Moreover (and I can't believe I'm still arguing that), terminals have the ability to set tab stops and there's no reason why the user wouldn't set up tab stops. Then this entire thing would be counterproductive. I know, in practise almost nobody sets those up, but it's some strange NIH stuff not to use those. They are there, they are not broken, and they are in order to make tables. To set those up, use the "tabs" program. $ tabs 1 10 50 $ echo -e 'hello\tbu\tba' hello bu ba --Sig_/hOP7qz7jKm5Z6Hxnvd9MFlS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl0xgDoACgkQ5xo1VCww uqUQAgf/bfQX+DERsRu4CwdLYVKZXvQKRpcI8hcgF0lqMjt+rkVgpzS0c+FtcWyA 4DLdL/g+K5wCGL9U0sZq5AGb5gOzB8iocc7Wp5cnrv+MFoYqda4C6Do5jCIIHIaS K90qwIDaxkhI6Ko5tuw55ivPpMsNWYI1r8J7RXXuHWHEHRPDBWBVyAWSEQmAIUkM aYgcRLbj2S7/i7qQSfeAUT1Y1fHcZQeBQ9fbzjFkiI/UG9wgXHpXJ1/OSu+iRCq4 /MuyrRvOUSCD87+D7m/MNARVjlZoYY2ltkv7ouxUoWI8zJ/MB2V1i/iDwC2xtTq9 nIxXzFWQv9OnUpONcJbT5N0iezdrmg== =sy19 -----END PGP SIGNATURE----- --Sig_/hOP7qz7jKm5Z6Hxnvd9MFlS--