Hallo Alexander, >This is expected behavior (works fine) > >CUBOT_KING_KONG:/ # datasz=999999999999 > >CUBOT_KING_KONG:/ # disksz=1000000000000 >CUBOT_KING_KONG:/ # [ $datasz -gt $disksz ];
das wird nicht funktionieren: 999999999999 ist größer als 2147483647 (2³¹-1). mksh hat normalerweise 32-Bit-Arithmetik. Gruß //mirabilos -- “It is inappropriate to require that a time represented as seconds since the Epoch precisely represent the number of seconds between the referenced time and the Epoch.” -- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2