bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minor error in bc man page found


From: Ken Hansen
Subject: Minor error in bc man page found
Date: Mon, 23 Apr 2001 08:15:18 -0400

Hello,

Below is a copy of a note I sent to the author of the bc utility regarding a
minor problem in th eman page, as included in the Red Hat 6.2 distribution -
I assume this is common to all implementations.

I sent this note to the author before I found this email address for bug
reports...

Thank you for your time and assistance in correcting this little problem.

Ken Hansen
address@hidden
----- Original Message -----
From: "Ken Hansen" <address@hidden>
To: <address@hidden>
Sent: Monday, April 23, 2001 8:11 AM
Subject: hello?


> I was tinkering around with bc on Red Hat Linux 6.2 on my Sparcstation 5,
> and found a small error in the man page for bc - I am sending this to you
as
> you were listed as the program author.
>
> There is a checkbook example printed that is missing two print
statements -
> the code listed in the man page is as follows:
>
>              scale=2
>               print "\nCheck book program!\n"
>               print "  Remember, deposits are negative transactions.\n"
>               print "  Exit by a 0 transaction.\n\n"
>
>               print "Initial balance? "; bal = read()
>               bal /= 1
>               print "\n"
>               while (1) {
>                 "current balance = "; bal
>                 "transaction? "; trans = read()
>                 if (trans == 0) break;
>                 bal -= trans
>                 bal /= 1
>               }
>               quit
>
> There should be print commands in front of both the "current balance=" and
> "transaction?" prompts, as below:
>
>              scale=2
>               print "\nCheck book program!\n"
>               print "  Remember, deposits are negative transactions.\n"
>               print "  Exit by a 0 transaction.\n\n"
>
>               print "Initial balance? "; bal = read()
>               bal /= 1
>               print "\n"
>               while (1) {
>                 print "current balance = "; bal
>                 print "transaction? "; trans = read()
>                 if (trans == 0) break;
>                 bal -= trans
>                 bal /= 1
>               }
>               quit
>
> I realize this is not a big difference, and should be fairly obvious (I
> caught it, and I am not that familiar with bc), but it also seems very
easy
> to correct too.
>
> Thanks for your work on the bc implementation, and I appreciate any
> assistance you can provide in getting the man page corrected.
>
> Thanks,
>
> Ken Hansen
> address@hidden
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]