From 0021679b0dc5767e0c023b28b36eeb1476dc2364 Mon Sep 17 00:00:00 2001 From: John Beppu Date: Wed, 21 Jun 2000 19:06:16 +0000 Subject: + added dc (aka the function formerly known as math) + did all the housekeeping that this change requires. --- docs/busybox.pod | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'docs') diff --git a/docs/busybox.pod b/docs/busybox.pod index 8b1b7155f..75763d33f 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod @@ -313,6 +313,32 @@ Example: ------------------------------- +=item dc + +Usage: dc expression ... + +This is a Tiny RPN calculator that understands the +following operations: +, -, /, *, and, or, not, eor. +If no arguments are given, dc will process input from STDIN. + +The behaviour of BusyBox/dc deviates (just a little ;-) from +GNU/dc, but this will be remedied in the future. + +Example: + + $ dc 2 2 + + 4 + $ dc 8 8 \* 2 2 + / + 16 + $ dc 0 1 and + 0 + $ dc 0 1 or + 1 + $ echo 72 9 div 8 mul | dc + 64 + +------------------------------- + =item dd Usage: dd [if=name] [of=name] [bs=n] [count=n] [skip=n] [seek=n] @@ -1012,29 +1038,6 @@ Example: ------------------------------- -=item math - -Usage: math expression ... - -This is a Tiny RPN calculator that understands the -following operations: +, -, /, *, and, or, not, eor. -If no arguments are given, math will process input from STDIN. - -Example: - - $ math 2 2 + - 4 - $ math 8 8 \* 2 2 + / - 16 - $ math 0 1 and - 0 - $ math 0 1 or - 1 - $ echo 72 9 / | math - 8 - -------------------------------- - =item md5sum Usage: md5sum [OPTION] [file ...] @@ -2021,4 +2024,4 @@ Enrique Zanardi =cut -# $Id: busybox.pod,v 1.43 2000/06/20 00:11:07 proski Exp $ +# $Id: busybox.pod,v 1.44 2000/06/21 19:06:16 beppu Exp $ -- cgit v1.2.3