Re: bug with getting an array index or ...

2015-12-06 Thread Chet Ramey
On 12/6/15 10:18 AM, konsolebox wrote: > On Sun, Dec 6, 2015 at 9:38 PM, shawn wilson wrote: >> declare -a array=( ); echo "${!array[@]}"; >> echo "${!array[@]:-}" >> >> also, "${!array[@]:foo}" and :+foo and :-foo are all empty as well - >> I'm pretty sure this is not int

Re: bug with getting an array index or ...

2015-12-06 Thread konsolebox
On Sun, Dec 6, 2015 at 9:38 PM, shawn wilson wrote: > declare -a array=( ); echo "${!array[@]}"; > echo "${!array[@]:-}" > > also, "${!array[@]:foo}" and :+foo and :-foo are all empty as well - > I'm pretty sure this is not intended? > ${!name[@]:-word}, ${!name[@]:+word},

bug with getting an array index or ...

2015-12-06 Thread shawn wilson
declare -a array=( ); echo "${!array[@]}"; echo "${!array[@]:-}" also, "${!array[@]:foo}" and :+foo and :-foo are all empty as well - I'm pretty sure this is not intended?