On Wed, Dec 20, 2006 at 08:17:04PM +0800, Uwe Dippel wrote:
| Otto Moerbeek wrote:
|
| >(( .. )) is ksh specific.
|
| I know.
|
| > Put #!/bin/ksh in your scritp and you'll be fine.
|
| Have you tried it ? I did. It doesn't work.

It works. How are you running this test ?

[EMAIL PROTECTED] $ cat > test
#!/bin/ksh
i=0
uplim=10
while [ $i -lt $uplim ]
do
       ((i=i+1))
       echo $i
done
[EMAIL PROTECTED] $ chmod u+x test
[EMAIL PROTECTED] $ ./test
1
2
3
4
5
6
7
8
9
10
[EMAIL PROTECTED] $ sh test
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
^C

Cheers,

Paul 'WEiRD' de Weerd

--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to