logo       

Re: The IFS variable - a confusing issue.: msg#00224

shells.bash.bugs

Subject: Re: The IFS variable - a confusing issue.

cga wrote:

I don't know how to find out what indices are in use for an array
other than by exhaustive search until you have found the last one.

One could use the expansion operator that does that: ${!a[@]}.
It's new in bash-3.0.

Chet


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise