Red Hat Bugzilla – Bug 204029
the /etc/csh.cshrc blocks csh/tcsh scripts from debugging
Last modified: 2010-04-06 04:42:42 EDT
Description of problem: From redhat 7.2 now, the /etc/csh.cshrc file blocks
csh/tcsh scripts from debugging. the '$?variableName' inside /etc/csh.cshrc
aborts debugging of scripts immediately.
Version-Release number of selected component (if applicable): 6.13
Steps to Reproduce:
1. code a simple script like the following:
[root@www ~]# cat /var/tmp/test.csh
echo " I'm here"
2. run the script and it will fail the dry-run(debugging) of above script
[root@www ~]# /var/tmp/test.csh
if ( "$group" == "$user" && $uid > 99 ) then
if ( $?prompt ) then
$?prompt: No match.
continue sourcing /etc/csh.cshrc, /etc/profile.d/*.csh, and dry-run the above
The $?variable expression fails to do its job under the '-n' option?
Created attachment 134999 [details]
Backport of a patch from #162187
If you are a RHEL customer and have an active support entitlement, please contact
official Red Hat Support at https://www.redhat.com/apps/support/ to allow correct
prioritization of this issue.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
RHTS covered by:
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.