Re: Array Elements with Spaces

2007-11-10 Thread Michael Potter
Thanks, That fixed it. For the benefit of others... I ran my test program on a couple different versions of bash (including 2.x) and It seems that this behavior (combination of quotes and * versus @) changes based on the version of bash, and not just between 2.x and 3.x. I did not do an exhausti

Re: Array Elements with Spaces

2007-11-10 Thread Andreas Schwab
"Michael Potter" <[EMAIL PROTECTED]> writes: > countparms ${Arguments[*]} Use "[EMAIL PROTECTED]" instead (including the quotes). See node Arrays in the Bash docs. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP k

Array Elements with Spaces

2007-11-10 Thread Michael Potter
Group, I have having a problem with spaces in individual elements of an array. The space causes a single element to be seen as multiple elements. Here is a sample run: - [EMAIL PROTECTED]:~/bin> ./arraywithspace.sh 3.1.17(1)-release got 6 parm