From owner-svn-src-head@freebsd.org Thu Jul 30 16:40:43 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 981563AA182; Thu, 30 Jul 2020 16:40:43 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BHbkf6r7qz4c84; Thu, 30 Jul 2020 16:40:42 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from [192.168.1.10] (c-98-207-126-143.hsd1.ca.comcast.net [98.207.126.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rpokala) by smtp.freebsd.org (Postfix) with ESMTPSA id B3B501FF2B; Thu, 30 Jul 2020 16:40:41 +0000 (UTC) (envelope-from rpokala@freebsd.org) User-Agent: Microsoft-MacOutlook/16.39.20071300 Date: Thu, 30 Jul 2020 09:40:36 -0700 Subject: Re: svn commit: r363091 - in head/contrib/bc: . include manuals src tests tests/bc From: Ravi Pokala To: Jessica Clarke , Baptiste Daroussin CC: Stefan =?UTF-8?B?RcOfZXI=?= , src-committers , , Message-ID: Thread-Topic: svn commit: r363091 - in head/contrib/bc: . include manuals src tests tests/bc References: <202007110733.06B7XJrp033777@repo.freebsd.org> <20200730162009.rnjs6l5rjqsoiqpq@ivaldir.net> <20200730163154.a4d7672xsugkhmxq@ivaldir.net> In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 16:40:43 -0000 -----Original Message----- From: on behalf of Jessica Clarke Date: 2020-07-30, Thursday at 09:35 To: Baptiste Daroussin Cc: Stefan E=C3=9Fer , src-committers , , Subject: Re: svn commit: r363091 - in head/contrib/bc: . include manuals sr= c tests tests/bc On 30 Jul 2020, at 17:31, Baptiste Daroussin wrote: > On Thu, Jul 30, 2020 at 05:28:19PM +0100, Jessica Clarke wrote: >> On 30 Jul 2020, at 17:20, Baptiste Daroussin wrot= e: >>> On Sat, Jul 11, 2020 at 07:33:19AM +0000, Stefan E=C3=9Fer wrote: >>>> Author: se >>>> Date: Sat Jul 11 07:33:18 2020 >>>> New Revision: 363091 >>>> URL: https://svnweb.freebsd.org/changeset/base/363091 >>>>=20 >>>> Log: >>>> Update to version 3.1.3 >>>>=20 >>> Jumping on that commit, since the switch from our previous bc. >>>=20 >>> The output of the interactive bc has changed, the previous version = had a clean >>> UI, the new version "pollutes" the output with plenty of lines abou= t the >>> copyright: >>>=20 >>> =3D=3D=3D=3D >>> Copyright (c) 2018-2020 Gavin D. Howard and contributors >>> Report bugs at: https://git.yzena.com/gavin/bc >>>=20 >>> This is free software with ABSOLUTELY NO WARRANTY. >>> =3D=3D=3D=3D >>>=20 >>> Imagine if all programs where doing that, it would be painful, do y= ou think >>> upstream can be convinced to remove those lines? >>>=20 >>> I no the GNU version also has the same polluted output which was on= e of the >>> reason I was happy with out previous version of bc. >>=20 >> By default both will print such a banner if and only if being called >> interactively. You can disable the banner explicitly with -q/--quiet >> for both GNU bc and this bc. I agree it's a bit noisy and would be >> nicer to not have that printed, but it's not without precedent for >> REPL-like things. >=20 > Yes it is not without precedent for REPL-like things, still I dislike= this and > would be happy to get bc interactive be as nice as the previous one w= e had :) >=20 > If not I will deal with it and just yell internally each time I run i= t :D `alias bc=3D'bc -q'` / `alias bc bc -q` and preserve your inner zen? :) Jess I was actually about to complain about the new `dc' not exiting after evalu= ating a '-e' expression, without an explicit 'q'. But then I noticed the "DC= _EXPR_EXIT" envvar, which restores the desired behavior. That lead me to dis= cover "DC_ENV_ARGS" and, correspondingly, "BC_ENV_ARGS"; that last one would= be helpful here. Thanks, Ravi (rpokala@)