On Fri, May 17, 2013 at 11:28 PM, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: Setting bool value to false doesn't set string value
>> Setting bool value to false doesn't set string value:
>> >~/bin/ksh -c 'bool -a bl ; (( bl[4][5][6]=false )) ; print 
>> >"str=${bl[4][5][6]}"
>>  "num=$((bl[4][5][6]))"'
>> str= num=0
>>
>> str= should be str=false
>>
>> Setting the value to true returns the right string value (str=true):
>> >~/bin/ksh -c 'bool -a bl ; (( bl[4][5][6]=true )) ; print 
>> >"str=${bl[4][5][6]}"
>> "num=$((bl[4][5][6]))"'
>> str=true num=1
>>
>> However, array elements which have not been set yet should return no
>> string value and the arithmetical value 0 and both access types should
>> throw an error when the set -o nounset flag is set.
>>
>> shell version is Version AJM 93v- 2013-05-02
>
> Fixed in next alpha.

Can I get the patch, please ? I've started to create an extra test
module for the "bool" datatype...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to