9
0
Fork 0

doc: add hint on how to calculate in hush

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Holger Schurig 2014-06-27 13:00:17 +02:00 committed by Sascha Hauer
parent d4efb42f80
commit 0b293a5397
1 changed files with 8 additions and 0 deletions

View File

@ -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:** hush 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