From owner-freebsd-current@freebsd.org Thu Jul 30 22:09:16 2020 Return-Path: Delivered-To: freebsd-current@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 7E4A73680EA for ; Thu, 30 Jul 2020 22:09:16 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BHl1m2sp0z416c for ; Thu, 30 Jul 2020 22:09:16 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 60BF13680E9; Thu, 30 Jul 2020 22:09:16 +0000 (UTC) Delivered-To: current@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 6085B3AFDF9 for ; Thu, 30 Jul 2020 22:09:16 +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 4BHl1m1xvLz419F; Thu, 30 Jul 2020 22:09:16 +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 2063722AC8; Thu, 30 Jul 2020 22:09:15 +0000 (UTC) (envelope-from rpokala@freebsd.org) User-Agent: Microsoft-MacOutlook/16.39.20071300 Date: Thu, 30 Jul 2020 15:09:12 -0700 Subject: Re: bc and dc -e/-f and Copyright From: Ravi Pokala To: Gavin Howard , , , , , , Stefan Esser Message-ID: <212701CD-3F16-46C9-B7CD-1ADC46C5BF7D@panasas.com> Thread-Topic: bc and dc -e/-f and Copyright References: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 22:09:16 -0000 Hi Gavin, Thanks for reaching out! My primary concern is that `dc -e' returns to its previous auto-exit behavi= or. Any of the options you described would achieve that, and would be fine w= ith me. Thanks again, Ravi (rpokala@)=20 =EF=BB=BF-----Original Message----- From: Gavin Howard Date: 2020-07-30, Thursday at 12:35 To: , , , , , Stefan Esser Subject: bc and dc -e/-f and Copyright Hello, My name is Gavin Howard, and I am the developer and maintainer of the new bc and dc implementation in -CURRENT. Stefan E=C3=9Fer brought a discussion about my bc to my attention, and I would like to solve the problems. First, I will add some way to remove the printing of the copyright header at compile time, and FreeBSD should be able to take advantage of it as soon as I put out a new release, which should be within days after this discussion is settled. Second, there seems to be those who are unhappy with my decision to make bc and dc not exit when using the -e and -f options. While the behavior of my bc is what I personally need, I have a few options to change it back to what is expected: 1. I could make it a compile-time selection. I don't like this option, to be honest. 2. I could restore the expected behavior of -e and -f and change the environment variable to BC_EXPR_NO_EXIT (DC_EXPR_NO_EXIT) and reverse the logic. I could do this one, but Stefan mentioned to me that he would prefer less environment variables be used. I agree. 3. I could restore the expected behavior of -e and -f and add -E and -F options that do the same thing but do not exit. I think I like this option the best. I am willing to change -E and -F to something else if that would be better. When I presented these options to Stefan, he suggested that I ask you all for your opinions. I am also willing to consider other options that you might think of. Thank you for your time. Gavin Howard