Subject: Re: Re: [ksh93-integration-discuss] CR 6715496 Updated  
P2shell/korn93ksh93 SEGVs on array reinitialization
--------

> However, it still seems to be a bug that
>         typeset -i i="junk"
> isn't flagged as a syntax error.  One would expect variable type to be 
> enforced 
> strongly if (but only if) it has been explicitly declared.
> 
> 

Whenever the name of a variable is given to an arithmetic expression
that is unset, it evaluates to 0 just as an unset variable expands
to the empty string for $junk.

However, set -u (set -o nounset), should cause this to be treated
as an error. 


David Korn
dgk at research.att.com

Reply via email to