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
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},
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?