9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "有澤 健治" <karisawa@gmail.com>
To: 9front@9front.org
Subject: Re: [9front] bc and < >
Date: Mon, 10 Jan 2022 21:14:43 +0900	[thread overview]
Message-ID: <60f29dfb-9d90-7442-eaa3-ebd08bf255f2@gmail.com> (raw)
In-Reply-To: <87tuebg691.fsf@turtle-trading.net>


TEST(1) TEST(1)

    n1 -eq n2  True if the integers n1 and n2 are arithmetically
               equal.  Any of the comparisons -ne, -gt, -ge,
               -lt, or -le may be used in place of -eq.


On 2022/01/10 20:49, Benjamin Riefenstahl wrote:
> 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
>
>


  parent reply	other threads:[~2022-01-10 12:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 11:49 Benjamin Riefenstahl
2022-01-10 12:14 ` Eckard Brauer
2022-01-10 12:29   ` Benjamin Riefenstahl
2022-01-10 12:14 ` 有澤 健治 [this message]
2022-01-10 13:25   ` Benjamin Riefenstahl
2022-01-10 12:23 ` Eckard Brauer
2022-01-10 13:24   ` Benjamin Riefenstahl
2022-01-10 14:00     ` Eckard Brauer
2022-01-11  6:29       ` cinap_lenrek
2022-01-12  8:00         ` Eckard Brauer
2022-01-12  9:13           ` Marc Chantreux
2022-01-13  5:22           ` umbraticus
2022-01-13 12:17             ` sirjofri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=60f29dfb-9d90-7442-eaa3-ebd08bf255f2@gmail.com \
    --to=karisawa@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).