On 10/8/08, naruto canada <[EMAIL PROTECTED]> wrote:
> hi
>
> (I've asked on comp.unix.shell but got no real help)
>
> anyone have any idea on how to achieve this --
> I'm facing a very stubborn "configure" file that I spend all day try
> to modify, b
hi
(I've asked on comp.unix.shell but got no real help)
anyone have any idea on how to achieve this --
I'm facing a very stubborn "configure" file that I spend all day try
to modify, but to avail...
anyway, all I need to do is to replace every call to gcc -La1 -La2 ...
-Ib1 -Ib2 ... to
gcc -La2 -
function fact {
local n=$1
if [ "$n" -eq 0 ]; then
return 1
else
fact $(( $n - 1 ))
return $(( $n * $? ))
fi
}
for i in `seq 0 11`; do
fact $i ; echo $?
done
1
1
2
6
24
120
208
176
128
128
0
0
the results are wrong for 6 and above.
is this a bug?