View Issue Details

IDProjectCategoryView StatusLast Update
0005770CentOS-6tcshpublic2012-06-22 21:59
Reporterjhein 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version6.2 
Target VersionFixed in Version 
Summary0005770: tcsh-6.17-19 regression with one line if
DescriptionThe CentOS update of the tcsh package is giving me trouble with some single line if statements.
Steps To Reproducecsh
cat > /tmp/echome << eof
echo me
eof
if ( 1 == 1 ) source /tmp/echome

Additional InformationWith tcsh-6.17-14, you get 'me' as output of the one line if above.
With tcsh-6.17-19 on centos 6.2, you get nothing.

Oddly, on a "real" rh box ('Red Hat Enterprise Linux Server release 6.2 (Santiago)'), 6.17-19 works fine. Package difference on CentOS? Library difference? I haven't pinned it down yet.
TagsNo tags attached.

Activities

toracat

toracat

2012-06-09 23:42

manager   ~0015235

I cannot reproduce the issue. I get 'me' on a CentOS box, tcsh-6.17-19.el6_2.

Instead of the if command above, if you 'cat /tmp/echome', what would you get?
jhein

jhein

2012-06-10 15:46

reporter   ~0015236

I should have mentioned that it seems related to 'source' somehow.

Here's the difference between my original test case and a test
using 'cat' instead of 'source'...

% diff -u /tmp/tstsrc{,.cat}
--- /tmp/tstsrc 2012-06-09 20:04:29.729702363 +0000
+++ /tmp/tstsrc.cat 2012-06-10 15:30:51.130637914 +0000
@@ -1,3 +1,3 @@
 echo 1
-if ( -e /tmp/echome ) source /tmp/echome
+if ( -e /tmp/echome ) cat /tmp/echome
 echo 2

With tcsh-6.17-19.el6_2 ...

% sh -c '/tmp/tcsh-6.17-19.el6_2 -f /tmp/tstsrc'
1
2
% sh -c '/tmp/tcsh-6.17-19.el6_2 -f /tmp/tstsrc.cat'
1
echo me
2


With tcsh-6.17-14.el6_2 (obtained from 'yum downgrade tcsh')...

% sh -c '/tmp/tcsh-6.17-14.el6_2 -f /tmp/tstsrc'
1
me
2
% sh -c '/tmp/tcsh-6.17-14.el6_2 -f /tmp/tstsrc.cat'
1
echo me
2
jhein

jhein

2012-06-10 15:47

reporter   ~0015237

[those /tmp/tcsh* files were obtained with 'cp /bin/csh /tmp/tcsh<...>']
toracat

toracat

2012-06-22 20:56

manager   ~0015319

Maybe the same issue as this one? :

https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=37916&forum=56
jhein

jhein

2012-06-22 21:59

reporter   ~0015320

Maybe. I'll see if I can find the bug this weekend.

Issue History

Date Modified Username Field Change
2012-06-09 20:15 jhein New Issue
2012-06-09 23:42 toracat Note Added: 0015235
2012-06-10 15:46 jhein Note Added: 0015236
2012-06-10 15:47 jhein Note Added: 0015237
2012-06-22 20:56 toracat Note Added: 0015319
2012-06-22 21:59 jhein Note Added: 0015320