[Top][All Lists]

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

Re: [Help-bash] array issue

From: Bill Gradwohl
Subject: Re: [Help-bash] array issue
Date: Sun, 19 Feb 2012 10:10:09 -0600

On Sun, Feb 19, 2012 at 9:30 AM, Bill Gradwohl <address@hidden> wrote:
I'm stumped. Can anyone please explain this:

declare -a regex
echo highest subscript of regex=${#regex}
echo highest subscript of regex=${#regex}

address@hidden junk# ./test
highest subscript of regex=0
highest subscript of regex=38

Never mind - I discovered my mistake.
Should be using address@hidden

Bill Gradwohl

reply via email to

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