The best thing would be to have the shell have a syntax for arithmetic,
but then call out to bc to do the actual handling (because then you get
trigonometry and literally everything that bc knows how to do, with only
a minimal modification to the shell).
Syntactic sugar for a heredoc to bc itself.
On Thu, Jan 17, 2013 at 12:54:55PM +0700, Peter A. Shevtsov wrote:
> I've made a simple associative arrays implementation in rc shell script.
I'm an rc newbie too, I like the associative arrays.
The code looks ok to me - but I wouldn't know!
Do we really have to use bc for simple arithmetic in rc
Hello,
I've made a simple associative arrays implementation in rc shell script.
Thanks to bnwr on irc for the idea with odd and even indices.
What do you think?
I'm rc newbie and would like to improve my skills. Any feedback would be
appreciated.
Thanks!
#!/usr/local/plan9/bin/rc
path=$PLAN9/