From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10363 invoked from network); 23 Jan 2023 13:45:05 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2023 13:45:05 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 0CEA7425D3; Mon, 23 Jan 2023 23:44:43 +1000 (AEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by minnie.tuhs.org (Postfix) with ESMTPS id BF878425D2 for ; Mon, 23 Jan 2023 23:44:38 +1000 (AEST) Received: by mail-lf1-f49.google.com with SMTP id b3so18250680lfv.2 for ; Mon, 23 Jan 2023 05:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/5we7vd//MCkt92PPfEUtSqTxj+u2DLUxeJK9yFgQOg=; b=SA3YcIhSwV1u8puAL51zj7Z2KenM6DjNYAGIf0CQH7ID2DVqXNj6EtsPrejXBijqnq 7ceKnN3eUb760UfUJKZwwzEgyDRIG+Hz5kT4iNJpgYT4jc3d94zx1e4bzOZFLnxcz91f UsAAbqrLXKGNyPkALBW1i88Xc77grTmmnqVcP7sZeh18nhxCAOp6zx0Oh69KAhn4AFfc rnLknlQeYIa5zIlyDCNOjx7Y6NhpZ2fy9qP5BY0MXS65G1RbpEF9omRPalpRL6+oIEME g0DAzWvYl1MtvqFpX4q4RrbVo4RZeJkEbuZx7K439FgIGhpz0hgZCZwqXmDOA2IlcXGe JtOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/5we7vd//MCkt92PPfEUtSqTxj+u2DLUxeJK9yFgQOg=; b=GT1579f7zWbvwsCQNAc/RF6NROT7yJkULBxwqRppLoGbt6sycTiZxMVFNVtqYGmNEL /UPvcq6cYS4Np9xd7OwT4oFxUne8cA52YooGyHgLRSvTi0iBYL6TZ929YqiFt9n+JKLp QSVNSFfKLQfSvhA5wGK6n5yoaro4uPN1Nu0lKh/M93xhvHC75lPV95BrTSQSjQCKKmvn cSGagvpsn+nWemdZUP6Gppj1UHHH7QHpfP++SyO2oEm+AjS8z5LLRj3XXqxJdp6xas24 G2MwnLemG6BfR46m1G6u5C5/JkimX/q4xEETfmaI4WPK1pbpFNwNMWD65RxO3dDC5IKP Lu7g== X-Gm-Message-State: AFqh2kq9IOQrRB3FysVDKTeNIotZwdRB0cHZ8d+Xij9zFw/j6sGa1fwU tAhDDuqMFYMNUpwi7ocAt+tpFtnF6rmSJyYIqmI= X-Google-Smtp-Source: AMrXdXs2cBWL4/aJrMApxTTDdEhWCkjtrgI1/qtsx8zJjTsaEscm7NlCxdhX3JukOz4S97r+EQuJZ+6/8aunxe2+idg= X-Received: by 2002:a05:6512:3e1e:b0:4cb:6c5:89a2 with SMTP id i30-20020a0565123e1e00b004cb06c589a2mr1194275lfv.411.1674481416676; Mon, 23 Jan 2023 05:43:36 -0800 (PST) MIME-Version: 1.0 References: <20230123031111.GX12196@mcvoy.com> In-Reply-To: <20230123031111.GX12196@mcvoy.com> From: Dan Cross Date: Mon, 23 Jan 2023 08:43:00 -0500 Message-ID: To: Larry McVoy Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: WBZQHDNP4KSYS763RN3TRY5VFACZMFU6 X-Message-ID-Hash: WBZQHDNP4KSYS763RN3TRY5VFACZMFU6 X-MailFrom: crossd@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: interesting case of not getting the point: dc on a mac List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Sun, Jan 22, 2023 at 10:11 PM Larry McVoy wrote: > On Mon, Jan 23, 2023 at 02:07:14PM +1100, Dave Horsfall wrote: > > On Sun, 22 Jan 2023, Steve Nickolas wrote: > > > > > I think there was one particular dc clone...guy whose name started with > > > a G? and his version did that. > > > > On my ancient MacBook Pro (13-inch, mid 2010, High Sierra 10.13.6): > > > > mackie:~ dave$ dc > > (^D) > > mackie:~ dave$ dc -V > > dc (GNU bc 1.06) 1.3 > > > > On my ancient FreeBSD server: > > > > aneurin% dc > > (^D) > > aneurin% dc -V > > dc (BSD bc) 1.3-FreeBSD > > > > Nil prompt in both cases. > > > > > Most Linux versions use GNU's which Does The Right Thing???????. > > I know this is about dc (which I think is under bc or is it the other way > around?) The other way around. `bc` is a little interpreter that accepts infix notation and has a fairly complete language built into it that generates `dc` and delegates to that to do the actual mathematics. > but to pick on GNU: > > slovax ~ 'bc' > bc 1.06.95 > Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. > This is free software with ABSOLUTELY NO WARRANTY. > For details type `warranty'. > slovax ~ alias bc > alias bc='bc -ql' > > because, well, the same reason I run vi in terse mode. Agreed. The copyright banner every time I run `bc` is excruciating. The `-l` argument came up not too long ago elsewhere; someone asked why `bc -l` is not the default. For those that don't know, `bc -l` loads a library of math functions (sine/cosine, arctan, and a couple of transcendentals) and sets the scale to 20 decimal points. It's very useful, but I suspect the reason this wasn't the default is that loading that library cost RAM and real cycles on a PDP-11 and for most simple uses that wasn't necessary. - Dan C.