Discussion:
[ast-developers] Regression in arithmetics
Dr. Werner Fink
2014-08-27 17:21:21 UTC
Permalink
Hi,

with this type of code

x=-1

if [ x -eq 0 ]; then
echo "not true"
fi

if [ x -eq -1 ]; then
echo "true"
fi

a customers reports a regresssion with ksh93u versus ksh93v-
Indeed I can verify this.

Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140827/683a19d1/attachment.sig>
David Korn
2014-08-28 00:57:35 UTC
Permalink
Thanks for reporting this. I have attached a patch that should fix this.
Let me know.
Post by Dr. Werner Fink
Hi,
with this type of code
x=-1
if [ x -eq 0 ]; then
echo "not true"
fi
if [ x -eq -1 ]; then
echo "true"
fi
a customers reports a regresssion with ksh93u versus ksh93v-
Indeed I can verify this.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
ast-developers at lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140827/3935b607/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.patch
Type: application/octet-stream
Size: 758 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140827/3935b607/attachment.obj>
Dr. Werner Fink
2014-08-28 13:20:46 UTC
Permalink
Post by David Korn
Thanks for reporting this. I have attached a patch that should fix this.
Let me know.
Yep it does,
thanks a lot!
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140828/3cceeeaf/attachment.sig>
Loading...