Re: Simple calculator
- To: debian-devel@lists.debian.org
- Subject: Re: Simple calculator
- From: James Troup <james@nocrew.org>
- Date: 26 Oct 1998 17:56:46 +0000
- Message-id: <[🔎] 87iuh7urz5.fsf@nocrew.org>
- In-reply-to: Rob Browning's message of "08 Aug 1998 15:45:29 -0500"
- References: <19980804102648.A823@feivel.online-club.de> <19980804203618.A1962@hairnet.demon.co.uk> <19980804153233.D9316@gate.cks.com> <19980805075029.A731@feivel.online-club.de> <19980805111739.R2299@kitenet.net> <19980806083303.A270@feivel.online-club.de> <19980806110106.B14237@gate.cks.com> <19980807070345.A6011@feivel.online-club.de> <njxk94kacqa.fsf@lug.lanl.gov> <19980807202024.A1082@feivel.online-club.de> <87yasz8aom.fsf@nevermore.csres.utexas.edu>
Rob Browning <rlb@cs.utexas.edu> writes:
> "Dr. Michael Meskes" <meskes@online-club.de> writes:
>
> > On Fri, Aug 07, 1998 at 12:06:05PM -0600, Neale Pickett wrote:
> > > Maybe we could convince the bc maintainer to add a shell script to the
> > > bc package (call it "calc" or something else easy to remember) which
> > > does command-line calculations, then; it seems as though a lot of people
> > > would find such a thing useful.
> > >
> > > #!/bin/sh
> > > if [ $# = 0 ]; then
> > > echo "`basename $0`: must supply something to calculate!" >&2
> > > exit 1
> > > echo "$*" | bc -l | sed 's/0*$//'
[...]
> Just don't call it calc. We already have one in apcalc.
Okay, anyone got any other ideas for a name? Using alternatives to
manage apcalc's calc and this small shell script doesn't seem right
somehow...
--
James
Reply to: