bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The IFS variable - a confusing issue.


From: Chet Ramey
Subject: Re: The IFS variable - a confusing issue.
Date: Sat, 16 Oct 2004 22:54:01 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.3) Gecko/20040910

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]