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
> 
> Wendy
> 

Fixed in next alpha.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to