Hide Forgot
With zsh on rhel5, running a syntax check against the script below never terminates whereas with rhel6 it does terminate. ---/--- #!/bin/zsh while (( $X < $Y )) do done ---/--- rhel5> zsh -n loop.sh loop.sh:2: bad math expression: operand expected at `< ' loop.sh:2: bad math expression: operand expected at `< ' loop.sh:2: bad math expression: operand expected at `< ' ... (infinite loop) rhel6> zsh -n loop.sh loop.sh:2: bad math expression: operand expected at `< ' It appears that with zsh version 4.2.6 condition '(($X < $Y))' is true whereas it's false with version 4.3.10 from rhel6. As a result script never terminates when executed with rhel5 zsh.
Created attachment 585136 [details] proposed patch
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
The patch looks simple enough (I assume someone ported it, or just took it, from upstream?)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1337.html