Red Hat Bugzilla – Bug 16588
bug with ksh
Last modified: 2008-05-01 11:37:58 EDT
i've scripts writen with ksh, to administrate Oracle Databases
my problem is:
i initialize a variable before a loop (while do...done)
next, in the loop , my variable increase (let a=a+1,...)
and when i leave the loop, my variable have the value before the loop
and not the value at the end of the loop !
Could you help me ?
I've a similar problem whith zsh and the values store in arrays
I can't reproduce this (zsh and ksh), they both seem to work like expected:
while true ; do
if [ $a -ge 21 ]; then