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

2013-07-24 Thread TigerLiu
Hi, James: Try something like = for i in a b c; do echo $i done a b c = Your suggestion is right! Thank you! Best wishes, ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2013-07-23 Thread TigerLiu
Hi, experts: It seems u-boot script does not support for / goto etc syntax? So, I could not use script to let one cmd run many times? Best wishes, ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2013-07-23 Thread TigerLiu
Hi, Albert: See the Denx U-Boot documentation, more precisely: http://www.denx.de/wiki/view/DULG/CommandLineParsing#Section_14.2.17. From this web page, it seems hush-shell support for iteration. So, i wrote a simple script as below: for(i=1;i10;i++) do echo lion-0722 done Then, i used

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

2013-07-23 Thread Albert ARIBAUD
Hi tiger...@viatech.com.cn, On Mon, 22 Jul 2013 19:44:18 +0800, tiger...@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

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

2013-07-22 Thread Albert ARIBAUD
Hi tiger...@viatech.com.cn, On Mon, 22 Jul 2013 17:46:38 +0800, tiger...@viatech.com.cn wrote: Hi, experts: It seems u-boot script does not support for / goto etc syntax? So, I could not use script to let one cmd run many times? See the Denx U-Boot documentation, more precisely:

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

2013-07-22 Thread Albert ARIBAUD
Hi tiger...@viatech.com.cn, On Mon, 22 Jul 2013 19:06:33 +0800, tiger...@viatech.com.cn wrote: Hi, Albert: See the Denx U-Boot documentation, more precisely: http://www.denx.de/wiki/view/DULG/CommandLineParsing#Section_14.2.17. From this web page, it seems hush-shell support for iteration.

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

2013-07-22 Thread TigerLiu
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;i10;i++) But I don't know how to write it correctly! Best wishes,

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

2013-07-22 Thread James Chargin
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, tiger...@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.