[U-Boot] [U-boot] shell script syntax

Albert ARIBAUD albert.u.boot at aribaud.net
Mon Jul 22 14:05:16 CEST 2013


Hi TigerLiu at viatech.com.cn,

On Mon, 22 Jul 2013 19:44:18 +0800, <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!

This is why I suggested that you experiment in your U-Boot console,
where you can quickly try things. One thing I'd test first is whether
your C-like use of 'for' is valid at all for Hush, or for Bourne shell
(from which Hush derives IIUC) -- I suspect it might not be.

> Best wishes,

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list