Hide Forgot
Description of problem: /etc/profile.d/which2.csh should be removed. It create an alias for 'which', and it forces to use the which command in the which package. But, csh has a which builtin command. It's better that the builtin command is used for csh by default, rather than what provided by the which package. Version-Release number of selected component (if applicable): which-2.19-5.1.el6 How reproducible: Always Steps to Reproduce: 1. install which package 2. check if there is /etc/profile.d/which2.csh Actual results: There is /etc/profile.d/which2.csh. Expected results: There is no /etc/profile.d/which2.csh Additional info:
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative.
This issue was proposed for RHEL 6.1 FasTrack but did not get resolved in time. It has been moved to RHEL 6.2 FasTrack.
I just ran into this problem on RHEL 6 -- couldn't figure out why 'which' was suddenly behaving differently. Then I realized I was no longer using the same 'which' I've been for years, but instead was running /usr/bin/which. /usr/bin/which differs from the tcsh builtin in a couple of significant ways: * /usr/bin/which doesn't report shell builtins (e.g. echo) * /usr/bin/which sends errors to stderr, the builtin sends them to stdout * /usr/bin/which creates much larger error messages when it cannot find the command requested (prints the entire $PATH) * /usr/bin/which runs much slower than the builtin (from the tcsh manpage: builtin which "is 10 to 100 times faster") Above and beyond the obnoxious behavior changes, there's an oddball comment in which2.csh that reads: # export AFS if you are in AFS environment That comment just seems outright wrong considering what that file is doing.
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-2011-0911.html