mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Holger Schurig <holgerschurig@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 08/12] doc: add hint on how to calculate in hush
Date: Fri, 27 Jun 2014 13:00:17 +0200	[thread overview]
Message-ID: <1403866821-4029-9-git-send-email-holgerschurig@gmail.com> (raw)
In-Reply-To: <1403866821-4029-1-git-send-email-holgerschurig@gmail.com>

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2014-06-27 10:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27 11:00 [PATCH 00/12] documentation updates Holger Schurig
2014-06-27 11:00 ` [PATCH 01/12] doc: .gitignore generated files Holger Schurig
2014-06-27 11:00 ` [PATCH 02/12] doc: make "System setup" an appendix Holger Schurig
2014-06-27 11:00 ` [PATCH 03/12] doc: start (almost) all headlines with a capital Holger Schurig
2014-06-27 11:00 ` [PATCH 04/12] doc: only include own download chapter Holger Schurig
2014-06-27 11:00 ` [PATCH 05/12] doc: filesystemtype -> filesystem type Holger Schurig
2014-06-27 11:00 ` [PATCH 06/12] doc: mention "make xconfig" Holger Schurig
2014-06-27 11:00 ` [PATCH 07/12] doc: add colon after NOTE and HINT Holger Schurig
2014-06-27 11:00 ` Holger Schurig [this message]
2014-06-27 11:00 ` [PATCH 09/12] doc: remove board type from barebox prompt examples Holger Schurig
2014-06-27 11:00 ` [PATCH 10/12] doc: reformat overly long lines Holger Schurig
2014-06-27 11:00 ` [PATCH 11/12] doc: move variables near device parameters Holger Schurig
2014-06-27 11:00 ` [PATCH 12/12] doc: link back from variables to " Holger Schurig
2014-06-27 19:48 ` [PATCH 00/12] documentation updates Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403866821-4029-9-git-send-email-holgerschurig@gmail.com \
    --to=holgerschurig@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox