[Bug 4255] New: dc: example fails

bugzilla at busybox.net bugzilla at busybox.net
Fri Sep 23 15:45:35 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=4255

           Summary: dc: example fails
           Product: Busybox
           Version: 1.19.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: 200309 at calcentral.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


dc: example fails

'dc 8 8 * 2 2 + / p' -> 16

The '*' needs to be escaped on the commandline as:

'dc 8 8 \* 2 2 + / p' -> 16

or

'dc 8 8 mul 2 2 + / p' -> 16


BusyBox v1.19.2 (2011-09-22 22:34:25 PDT) multi-call binary.

Usage: dc EXPRESSION...

Tiny RPN calculator. Operations:
+, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor,
p - print top of the stack (without popping),
f - print entire stack,
o - pop the value and set output radix (must be 10, 16, 8 or 2).
Examples: 'dc 2 2 add p' -> 4, 'dc 8 8 * 2 2 + / p' -> 16

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list