summaryrefslogtreecommitdiff
path: root/docs/busybox.pod
diff options
context:
space:
mode:
authorJohn Beppu2000-06-21 19:06:16 +0000
committerJohn Beppu2000-06-21 19:06:16 +0000
commit0021679b0dc5767e0c023b28b36eeb1476dc2364 (patch)
tree04ff8031a2151a0f95040bbc4bdf2f616d68a540 /docs/busybox.pod
parentb405dfa54df117201d93dcb7d24e9e9873737da6 (diff)
downloadbusybox-0021679b0dc5767e0c023b28b36eeb1476dc2364.zip
busybox-0021679b0dc5767e0c023b28b36eeb1476dc2364.tar.gz
+ added dc (aka the function formerly known as math)
+ did all the housekeeping that this change requires.
Diffstat (limited to 'docs/busybox.pod')
-rw-r--r--docs/busybox.pod51
1 files changed, 27 insertions, 24 deletions
diff --git a/docs/busybox.pod b/docs/busybox.pod
index 8b1b715..75763d3 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 <ezanardi@ull.es>
=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 $