From: Steve Litt <slitt@troubleshooters.com>
To: "supervision@list.skarnet.org" <supervision@list.skarnet.org>
Subject: Does execline natively do arithmetic and branching
Date: Thu, 19 Dec 2019 08:03:17 -0500 [thread overview]
Message-ID: <20191219080317.0b93894d@mydesk.domain.cxm> (raw)
Hi all,
I'm messing around with execline, in the hopes that in long tight loops
it can be faster than /bin/sh. Now I want to do incrementing and other
add/subtract. Is there any kind of native way, or do I need to backtick
dc?
Second question: Is there a way to find out whether a variable is ten
or above without using execline's ifthenelse to query the test
executable?
Thanks,
SteveT
Steve Litt
December 2019 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
next reply other threads:[~2019-12-19 13:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 13:03 Steve Litt [this message]
2019-12-19 16:31 ` Colin Booth
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=20191219080317.0b93894d@mydesk.domain.cxm \
--to=slitt@troubleshooters.com \
--cc=supervision@list.skarnet.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).