Bug 1410903
Summary: | tcsh -e flag is broken | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Angelo Bonet <angelotech> |
Component: | tcsh | Assignee: | David Kaspar // Dee'Kej <deekej> |
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | angelotech |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-13 01:44:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Angelo Bonet
2017-01-06 19:32:42 UTC
I was going to open an upstream bug report, but discovered this may be an issue limited to running tcsh on RHEL7. I've downloaded several upstream versions of tcsh (e.g. 6.18.01, 6.19, 6.20) and built them on both RHEL 6.8 and 7.3. The RHEL 6 builds work fine with -e, but fail on RHEL 7. Feel free to close this report as NOTABUG. The is not a problem with tcsh, it's the fact that the "-e" flag is being used without the "-f" flag. This is causing "-e" to operate on the initialization scripts and (on our particular RHEL7 host) there is a 'grep' command up in /etc/profile.d/ksh.csh that exists with status 2. Due to -e, this causes the tcsh invocation to exit with status 2 -- well before the users script is ever invoked -- just as it should. In our case, RHEL6 doesn't have any commands up in /etc/profile.d/*.csh that exit with a non-zero status -- so it skates through that code without a problem. (In reply to Angelo Bonet from comment #3) > Feel free to close this report as NOTABUG. > > The is not a problem with tcsh, it's the fact that the "-e" flag is being > used without the "-f" flag. This is causing "-e" to operate on the > initialization scripts and (on our particular RHEL7 host) there is a 'grep' > command up in /etc/profile.d/ksh.csh that exists with status 2. > > Due to -e, this causes the tcsh invocation to exit with status 2 -- well > before the users script is ever invoked -- just as it should. > > In our case, RHEL6 doesn't have any commands up in /etc/profile.d/*.csh that > exit with a non-zero status -- so it skates through that code without a > problem. Thank you very much, Angelo, for reporting this change in behaviour between RHEL6 and RHEL7. I wasn't aware of it, this might come in handy in the future. Much appreciated. Best regards, David |