From owner-svn-src-head@freebsd.org Thu Jul 30 16:46:01 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 A630D3AA267 for ; Thu, 30 Jul 2020 16:46:01 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BHbrm6fyDz4cTp for ; Thu, 30 Jul 2020 16:46:00 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: by mail-wr1-f67.google.com with SMTP id f18so25553941wrs.0 for ; Thu, 30 Jul 2020 09:46:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=00ffhTcbb8GMkZjTdW7mvirTRuDSRAokcJczfk0fhpE=; b=dWlzPOGDnCicxzRq906Fsum11W+wjxDduetYYJoIYk8K2rKbSwGzdMxL21tXaRlSS2 InezIboS62eEnHYQxH8D9YzPCa2xLBoz8Gw1O55K9v+uyM7IRJylh15T5yNZiNPfwqU4 fuE32sYh9dcImLOODZy71GwNX27p+2kKGMweBRoW5P1O/syiBSypeZz/yHcBatXqOZCP J9lGiEtaLsxqXzi7hY7V0kxoHm80GzeIi59VVmuEPt1doiJsUGmeUIVbx/OCaWwuQ+j7 /9ejQQOm6jMtvNfKUDkKN1rvr4Qw9SbTgTzufFud4KPUZA/XyIXADTZahasw41fih/Bm +qCQ== X-Gm-Message-State: AOAM532sILDb8/heYAhf6DmJEHQF+xtWMKBl4MBtsx/jbkv+AAAk7r8y Q+e7bNIgr/behPhdeKfcEpHo4x5+PkM= X-Google-Smtp-Source: ABdhPJxKDTJTqm6al073OOFoPZEsUYTbf4F9BLj9aCH1pIFc5GQkCXIQzRZ0JrysY5jZh3gvWkn+Kg== X-Received: by 2002:a5d:5151:: with SMTP id u17mr3603031wrt.154.1596127559601; Thu, 30 Jul 2020 09:45:59 -0700 (PDT) Received: from [192.168.149.251] (trinity-students-nat.trin.cam.ac.uk. [131.111.193.104]) by smtp.gmail.com with ESMTPSA id f9sm9754267wru.47.2020.07.30.09.45.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2020 09:45:58 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: svn commit: r363091 - in head/contrib/bc: . include manuals src tests tests/bc From: Jessica Clarke In-Reply-To: Date: Thu, 30 Jul 2020 17:45:58 +0100 Cc: Baptiste Daroussin , =?utf-8?Q?Stefan_E=C3=9Fer?= , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7257CDA6-0D66-42EB-9920-90DB90B9CA63@freebsd.org> References: <202007110733.06B7XJrp033777@repo.freebsd.org> <20200730162009.rnjs6l5rjqsoiqpq@ivaldir.net> <20200730163154.a4d7672xsugkhmxq@ivaldir.net> To: Ravi Pokala X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 4BHbrm6fyDz4cTp X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jrtc27@jrtc27.com designates 209.85.221.67 as permitted sender) smtp.mailfrom=jrtc27@jrtc27.com X-Spamd-Result: default: False [-2.65 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-head@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_FIVE(0.00)[6]; NEURAL_HAM_LONG(-1.07)[-1.071]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.10)[-1.101]; RCVD_IN_DNSWL_NONE(0.00)[209.85.221.67:from]; NEURAL_HAM_MEDIUM(-0.98)[-0.978]; FORGED_SENDER(0.30)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.221.67:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; RCVD_TLS_ALL(0.00)[] 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:46:01 -0000 On 30 Jul 2020, at 17:40, Ravi Pokala wrote: >=20 > -----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 src tests tests/bc >=20 > 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 = wrote: >>>> 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 = about 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 = you think >>>> upstream can be convinced to remove those lines? >>>>=20 >>>> I no the GNU version also has the same polluted output which was = one 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 = we had :) >>=20 >> If not I will deal with it and just yell internally each time I run = it :D >=20 > `alias bc=3D'bc -q'` / `alias bc bc -q` and preserve your inner = zen? :) >=20 > Jess >=20 > I was actually about to complain about the new `dc' not exiting after = evaluating 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 discover "DC_ENV_ARGS" and, correspondingly, = "BC_ENV_ARGS"; that last one would be helpful here. That does feel like the wrong default; even GNU dc doesn't do that, and the principle of least surprise would suggest exiting is the right thing to do. It's also unlikely you want to evaluate something and then use it interactively. Jess