[PATCH 08/12] doc: add hint on how to calculate in hush

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

 



Signed-off-by: Holger Schurig <holgerschurig@xxxxxxxxx>
---
 Documentation/user/hush.rst |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/user/hush.rst b/Documentation/user/hush.rst
index 2a0e630..ba4f062 100644
--- a/Documentation/user/hush.rst
+++ b/Documentation/user/hush.rst
@@ -50,3 +50,11 @@ example the :ref:`command_echo` command has the ``-a FILE`` option for appending
 a file and the ``-o FILE`` option for overwriting a file. The readline
 command requires a variable name as argument in which the line will be
 stored.
+
+**NOTE:** hust feels like a normal Unix shell, but it cannot calculate by
+itself, i.e. $(($A/2)) won't work. Calculation can however be done
+with :ref:`command_let`::
+
+  A=10
+  let B=$A/2
+  echo $B
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux