diff options
author | Holger Schurig <holgerschurig@gmail.com> | 2014-06-27 13:00:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-27 21:46:58 +0200 |
commit | 0b293a5397c62e1d1a07f42b510d99416131412a (patch) | |
tree | f059d0f758b0f60df74145b14fa8482529175677 /Documentation | |
parent | d4efb42f80253c979e32459bc755318d696de654 (diff) | |
download | barebox-0b293a5397c62e1d1a07f42b510d99416131412a.tar.gz barebox-0b293a5397c62e1d1a07f42b510d99416131412a.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/user/hush.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/user/hush.rst b/Documentation/user/hush.rst index 2a0e63079b..00d4e2983e 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:** 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 |