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.

Bug 1123854

Summary: Tcsh does not support upstream's $anyerror variable
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Raiskup <praiskup>
Component: tcshAssignee: David Kaspar // Dee'Kej <deekej>
Status: CLOSED ERRATA QA Contact: Iveta Wiedermann <isenfeld>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: fpokorny, isenfeld, ovasik, praiskup
Target Milestone: rcKeywords: Regression, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tcsh-6.18.01-8.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1129703 1256653 (view as bug list) Environment:
Last Closed: 2015-11-19 14:28:49 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:
Bug Depends On:    
Bug Blocks: 1129703    
Attachments:
Description Flags
Reintroduce $anyerror as is done in upstream
none
Proposed bugfix praiskup: review+

Description Pavel Raiskup 2014-07-28 13:27:23 UTC
IIRC upstream tcsh's git-log, from tcsh 6.17.06, the $anyerror variable works
that way:

    $ echo $?anyerror
    1
    $ false | true ; echo $?
    1
    $ set anyerror ; false | true ; echo $?
    1
    $ unset anyerror ; false | true ; echo $?
    0

From tcsh617.el5 we introduced (yet?) upstream-incompatible
'$tcsh_posix_status' variable, which has opposite meaning.  For compatibility
with older RHEL and upstram, we need to support both 'anyerror' and
'tcsh_posix_status'.  Currently, 'anyerror' variable is not working in RHEL7;
where is tcsh-6.18.00.

This bug exists to re-introduce $anyerror variable.

References: bug 1025703, bug 759132

Comment 2 Pavel Raiskup 2014-07-28 14:14:45 UTC
Created attachment 921770 [details]
Reintroduce $anyerror as is done in upstream

Comment 3 Pavel Raiskup 2014-08-13 13:41:13 UTC
JFTR, upstream is not interested in $tcsh_posix_status support:
http://mx.gw.com/pipermail/tcsh-bugs/2014-July/000884.html

Also, upstream has now clear documentation how $anyerror works:
http://mx.gw.com/pipermail/tcsh-bugs/2014-July/000890.html

Comment 4 Pavel Raiskup 2014-08-27 15:08:41 UTC
I tried to wait until 6.19 release but it was postponed, so fixing the
issue for f21+:

http://pkgs.fedoraproject.org/cgit/tcsh.git/commit/?id=804e62644c28b1e4aea8

Comment 5 Pavel Raiskup 2014-08-27 15:13:16 UTC
Well, I swapped bz numbers in my head, reopening.  The patch from comment #4 is
reusable in RHEL7.

QA: test case added

Comment 9 David Kaspar // Dee'Kej 2015-07-10 12:03:44 UTC
Created attachment 1050655 [details]
Proposed bugfix

Comment 17 errata-xmlrpc 2015-11-19 14:28:49 UTC
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-2015-2431.html