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.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11395 invoked from network); 10 Jan 2022 11:55:43 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 10 Jan 2022 11:55:43 -0000 Received: from odoacer.turtle-trading.net ([93.241.193.16]) by 4ess; Mon Jan 10 06:49:55 -0500 2022 Received: from zenobia.turtle-trading.net ([192.168.2.111]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1n6tBK-0007AF-RS; Mon, 10 Jan 2022 12:49:46 +0100 Received: from benny by zenobia.turtle-trading.net with local (Exim 4.94.2) (envelope-from ) id 1n6tBK-001kwb-JS; Mon, 10 Jan 2022 12:49:46 +0100 From: Benjamin Riefenstahl To: 9front@9front.org Date: Mon, 10 Jan 2022 12:49:46 +0100 Message-ID: <87tuebg691.fsf@turtle-trading.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: just-in-time engine-oriented database standard Subject: [9front] bc and < > Reply-To: 9front@9front.org Precedence: bulk Hi all, I'm trying to write a script in rc that needs to compare numbers. It seems that rc does not do math, so I try to use bc for that. But I encounter this: term% echo '1 < 2' | bc stdin:1 syntax error 2 man bc says this should work, right? Thanks, benny