bug in ksh?

Paweł Sikora pluto at agmk.net
Fri Jul 7 12:56:52 CEST 2006


Dnia piątek, 7 lipca 2006 12:48, Andrzej 'The Undefined' Dopierała napisał:
> weirdy difference between sh from ksh and bash:
>
> [undefine at omega ~]$ bash
> [undefine at omega ~]$ [ "3000000000" -ge "2000000000" ] && echo works
> works
> [undefine at omega ~]$ sh
> [undefine at omega ~]$ [ "3000000000" -ge "2000000000" ] && echo works
> [undefine at omega ~]$
>
> [undefine at omega ~]$ rpm -qf /bin/sh /bin/bash
> pdksh-5.2.14-43
> bash-3.1.017-1

[ ac-amd64 ]
$ sh -c '[ "3000000000" -ge "2000000000" ] && echo works'
works
$ rpm -q pdksh
pdksh-5.2.14-43

[ th-x86_64 ]
$ sh -c '[ "3000000000" -ge "2000000000" ] && echo works'
works
$ rpm -q pdksh
pdksh-5.2.14-43.x86_64


More information about the pld-devel-en mailing list