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 How reproducible: every time. Steps to Reproduce: 1. code a simple script like the following: [root@www ~]# cat /var/tmp/test.csh #!/bin/tcsh -Xvn echo " I'm here" [root@www ~]# 2. run the script and it will fail the dry-run(debugging) of above script immediately. 3. Actual results: [root@www ~]# /var/tmp/test.csh if ( "$group" == "$user" && $uid > 99 ) then endif if ( $?prompt ) then $?prompt: No match. [root@www ~]# Expected results: continue sourcing /etc/csh.cshrc, /etc/profile.d/*.csh, and dry-run the above script. Additional info: 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 release.
RHTS covered by: http://cvs.devel.redhat.com/cgi-bin/cvsweb.cgi/tests/tcsh/debugging-in-tcsh/
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. http://rhn.redhat.com/errata/RHBA-2008-0676.html