public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: James Chargin <jimccrown@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-boot] shell script syntax
Date: Mon, 22 Jul 2013 06:10:17 -0700	[thread overview]
Message-ID: <51ED2F39.6070809@gmail.com> (raw)
In-Reply-To: <FE7ADED5C2218B4786C09CD97DC4C49F99D8BC@exchbj02.viatech.com.bj>

Try something like

=> for i in a b c; do
 > echo $i
 > done
a
b
c
=>

Regards,
Jim

On 07/22/2013 04:44 AM, TigerLiu at viatech.com.cn wrote:
> Hi, Albert:
>> Did you try the commands live in your U-Boot console?
>> Did you make sure hush shell is enabled in your U-boot?
> I am sure I have enabled hush shell.
>
> I think "for" iteration syntax is error:
> "for(i=1;i<10;i++)"
>
> But I don't know how to write it correctly!
>
> Best wishes,
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

-- 
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com

  parent reply	other threads:[~2013-07-22 13:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22  9:46 [U-Boot] [U-boot] shell script syntax TigerLiu at viatech.com.cn
2013-07-22 10:24 ` Albert ARIBAUD
2013-07-22 11:06   ` TigerLiu at viatech.com.cn
2013-07-22 11:29     ` Albert ARIBAUD
2013-07-22 11:44       ` TigerLiu at viatech.com.cn
2013-07-22 12:05         ` Albert ARIBAUD
2013-07-22 13:10         ` James Chargin [this message]
2013-07-25  5:16           ` TigerLiu at viatech.com.cn

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=51ED2F39.6070809@gmail.com \
    --to=jimccrown@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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