Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
tcsh recognize value 2147483648 in variable as negative.
Version-Release number of selected component (if applicable):
tcsh-6.17-25.el6_6
How reproducible:
Always
Steps to Reproduce:
Execute following test01.csh
====== script ====
set InPutFSize=2147483648
echo $InPutFSize
if(${InPutFSize}>0) then;
echo $InPutFSize "is positive value";
endif
if(${InPutFSize}<0) then;
echo $InPutFSize "is negative value";
endif
====== script end ===
Actual results:
Result with tcsh from RHEL6. (tcsh-6.17-25.el6_6)
2147483648
2147483648 is negative value
Expected results:
Result with tcsh from RHEL7 (tcsh-6.18.01-8.el7)
2147483648
2147483648 is positive value
Additional info:
This symptom doesn't exist on tcsh from RHEL7.
After spending some times for bisect,
I found following commit between 6.17.00 and 6.17.01
fix the symptom.
commit f81e094fc9baaa5e96487d684e71cd4fcde8a3a3
Author: Christos Zoulas <christos>
Date: Tue Jan 26 16:10:08 2010 +0000
make internal calculations use 64 bits.
Please consider backport this patch to tcsh on RHEL6.
Comment 2David Kaferad // Dee'Kej
2016-01-14 13:17:12 UTC
Hello,
and thank you for your bug report and the additional information you have provided to us. We really appreciate your contribution.
---------
NOTE: Additional (follow-up) commit is necessary as well:
> commit 90a08c664d09f275eb1ecb538944164bd92d6168
> Author: Christos Zoulas <christos>
> Date: 6 years ago
>
> deal with systems that don't have long long
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.
https://rhn.redhat.com/errata/RHBA-2016-0938.html
Description of problem: tcsh recognize value 2147483648 in variable as negative. Version-Release number of selected component (if applicable): tcsh-6.17-25.el6_6 How reproducible: Always Steps to Reproduce: Execute following test01.csh ====== script ==== set InPutFSize=2147483648 echo $InPutFSize if(${InPutFSize}>0) then; echo $InPutFSize "is positive value"; endif if(${InPutFSize}<0) then; echo $InPutFSize "is negative value"; endif ====== script end === Actual results: Result with tcsh from RHEL6. (tcsh-6.17-25.el6_6) 2147483648 2147483648 is negative value Expected results: Result with tcsh from RHEL7 (tcsh-6.18.01-8.el7) 2147483648 2147483648 is positive value Additional info: This symptom doesn't exist on tcsh from RHEL7. After spending some times for bisect, I found following commit between 6.17.00 and 6.17.01 fix the symptom. commit f81e094fc9baaa5e96487d684e71cd4fcde8a3a3 Author: Christos Zoulas <christos> Date: Tue Jan 26 16:10:08 2010 +0000 make internal calculations use 64 bits. Please consider backport this patch to tcsh on RHEL6.