9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Marc Chantreux <mc@unistra.fr>
To: 9front@9front.org
Subject: Re: [9front] bc and < >
Date: Wed, 12 Jan 2022 10:13:39 +0100	[thread overview]
Message-ID: <Yd6bw8tCUtdjfzE8@prometheus.u-strasbg.fr> (raw)
In-Reply-To: <20220112090014.43ab535f@gmx.de>

hello,

i really think heredocs are much more readable than echo.

> > # fixed version works:
> > term% echo 'r=0; if (1<2) r=1; print r' | bc
> > 1

<<. bc
  r=0
  if (1<2) r=1
  r
.

regards
-- 
Marc Chantreux
Direction du numérique de l'Université de Strasbourg
Pôle de Calcul et Services Avancés à la Recherche (CESAR)
http://annuaire.unistra.fr/p/20200

  reply	other threads:[~2022-01-12 10:07 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 ` 有澤 健治
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 [this message]
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=Yd6bw8tCUtdjfzE8@prometheus.u-strasbg.fr \
    --to=mc@unistra.fr \
    --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).