Re: The usage of {0..${#parameter}}

2010-06-23 Thread Greg Wooledge
On Wed, Jun 23, 2010 at 03:27:28PM -0500, Peng Yu wrote: > #for i in {0..${#parameter}}; This doesn't work. The parser does things in a very specific order. Brace expansion is done before parameter expansion. The parser sees 0..$ and that isn't a legitimate brace expansion range, so it doesn't p

The usage of {0..${#parameter}}

2010-06-23 Thread Peng Yu
The commented line in the following bash script is not working. I notice the following description from man bash and I think that it is the reason. But I'm not completely sure. Would you please confirm it for me? Also, I'm wondering where this decision was made. Can't bash be made more powerful by