From owner-freebsd-current@freebsd.org Sun Jul 5 09:25:25 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 18C6D366DCC for ; Sun, 5 Jul 2020 09:25:25 +0000 (UTC) (envelope-from se@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 4B03Fw6wpgz3TNc; Sun, 5 Jul 2020 09:25:24 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-WLAN.fritz.box (p200300cd5f203300251086e584ce2666.dip0.t-ipconnect.de [IPv6:2003:cd:5f20:3300:2510:86e5:84ce:2666]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 59CB114F48; Sun, 5 Jul 2020 09:25:24 +0000 (UTC) (envelope-from se@freebsd.org) Subject: Re: CURRENT: bc -e results in empty string/result To: "Hartmann, O." Cc: FreeBSD CURRENT References: <20200703172503.5b739102@thor.intern.walstatt.dynvpn.de> <82c80079-2e33-dfea-4553-37806c6fbe60@freebsd.org> <20200704115031.5f9ee55c@hermann.fritz.box> From: =?UTF-8?Q?Stefan_E=c3=9fer?= Autocrypt: addr=se@freebsd.org; keydata= mQENBFVxiRIBCADOLNOZBsqlplHUQ3tG782FNtVT33rQli9EjNt2fhFERHIo4NxHlWBpHLnU b0s4L/eItx7au0i7Gegv01A9LUMwOnAc9EFAm4EW3Wmoa6MYr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g7sLS9jjTnCN7LGlVmSmpOEMy6 uq1AWfUAEQEAAYkBPAQYAQoAJgIbDBYhBKNx6mWcC+zIK3FTE0frte9a/fVEBQJa8u+rBQkL JQEZAAoJEEfrte9a/fVEuesH/2DNxGWnHvWwMyiyhlQtafvDKwEn/wAgR8gHJFodB7emf8rA TnukH7MVttCoHtjN5lvv9RSBHjNTZls5wR/ANlwdRuPQHd8ZGxLe3S6IuUB3zDSwFltLGurO N2kOMhs5mTGyypSa+uw3rtQbUAVYf1oPbiR4FLtiM8FLyEvE95hX5fPq9Qvx9FmN79kmCIEw jDKPqDaUf/OR2fEF0LSIbXHEk4tNqCEwx5DIJ0fp5/z5UzICUAmwxyRs5O/Hre1jzPsMVyud Ml9t7UTOJGKVWwRory1PMnOFxN+iz5/d4FhYSKXF7kfMiFgol4LuWaxJRwbBrr71VGBrRy2a L1nw6Bc= Message-ID: Date: Sun, 5 Jul 2020 11:25:21 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200704115031.5f9ee55c@hermann.fritz.box> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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: Sun, 05 Jul 2020 09:25:25 -0000 Am 04.07.20 um 11:50 schrieb Hartmann, O.: > On Fri, 3 Jul 2020 17:58:27 +0200 > Stefan Eßer wrote: >> From the bc man-page: >> >> The quit statement causes bc(1) to quit, even if it is on a branch >> that will not be executed (it is a compile-time command). >> >> The halt statement causes bc(1) to quit, if it is executed. (Unlike >> quit if it is on a branch of an if statement that is not executed, >> bc(1) does not quit.) >> >> This behavior is identical to that of GNU bc: >> >> $ echo "6582031 - 1048576 - 0 - 409600 - 1024 - 40 - 4096; quit " | >> gbc $ echo "6582031 - 1048576 - 0 - 409600 - 1024 - 40 - 4096; halt " >> | gbc 5118695 > > Hello. > > Unfortunately, there was no remark in UPDATING and in the hurry I did > not find any traces of the change, so it hit me since several scripts > failed. As a workaround, it helped to replace "-e quit" by "-e halt", > although this might semantically also an unfortunate way to do. Hi Oliver, you are right to point out that the change would have been worth an entry in UPDATING! (... which I'm going to belatedly add, now) I had submitted an entry for the quarterly report, but UPDATING is the first place that I'd consult, in case of such an unexpected change, too. The author of the new bc has changed the semantics of -e to those of the FreeBSD version, since he is very interested in providing an implementation that covers all relevant GNU and FreeBSD features and extensions. The new version is already waiting to be committed in my source tree, I'm just waiting for the go-ahead from the author, who runs fuzzing tests for several days before tagging a new release version (the regression tests run in less than a minute and did all pass, including one for the FreeBSD -e behavior, of course ;-) ). I'll expect the new version with the fix to be tagged on Monday afternoon (local time) and will then update the sources in base and the port. Best regards, STefan