I've encountered a problem with the bool datatype and the set -o nounset flag in arithmetic expressions. Setting the boolean values true/false works in an arithmetic expression, yielding in the correct results: > ~/bin/ksh +o nounset -c 'bool bl ; (( bl=true )) ; print $bl $((bl))' true 1 > ~/bin/ksh +o nounset -c 'bool bl ; (( bl=false )) ; print $bl $((bl))' false 0
If I enable the set -o nounset flag the shell (Version AJM 93v- 2013-05-02) it'll throws errors: > ~/bin/ksh -o nounset -c 'bool bl ; (( bl=true )) ; print $bl $((bl))' /home/wlin/bin/ksh: true: parameter not set > ~/bin/ksh -o nounset -c 'bool bl ; (( bl=false )) ; print $bl $((bl))' /home/wlin/bin/ksh: false: parameter not set Wendy _______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
