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

James Chargin jimccrown at gmail.com
Mon Jul 22 15:10:17 CEST 2013


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


More information about the U-Boot mailing list