IIRC upstream tcsh's git-log, from tcsh 6.17.06, the $anyerror variable works
$ echo $?anyerror
$ false | true ; echo $?
$ set anyerror ; false | true ; echo $?
$ unset anyerror ; false | true ; echo $?
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
Created attachment 921770 [details]
Reintroduce $anyerror as is done in upstream
JFTR, upstream is not interested in $tcsh_posix_status support:
Also, upstream has now clear documentation how $anyerror works:
I tried to wait until 6.19 release but it was postponed, so fixing the
issue for f21+:
Well, I swapped bz numbers in my head, reopening. The patch from comment #4 is
reusable in RHEL7.
QA: test case added
Created attachment 1050655 [details]
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.