9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: 9front@9front.org
Subject: [9front] bc and < >
Date: Mon, 10 Jan 2022 12:49:46 +0100	[thread overview]
Message-ID: <87tuebg691.fsf@turtle-trading.net> (raw)

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



             reply	other threads:[~2022-01-10 11:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 11:49 Benjamin Riefenstahl [this message]
2022-01-10 12:14 ` Eckard Brauer
2022-01-10 12:29   ` Benjamin Riefenstahl
2022-01-10 12:14 ` 有澤 健治
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=87tuebg691.fsf@turtle-trading.net \
    --to=b.riefenstahl@turtle-trading.net \
    --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).