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 671289 - /etc/profile.d/which2.csh should be removed
Summary: /etc/profile.d/which2.csh should be removed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: which
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Than Ngo
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-21 01:10 UTC by Masahiro Matsuya
Modified: 2020-03-25 10:31 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Prior to this update, the /etc/profile.d/which2.csh file caused an alias for the "which" command to be created. As a result, the "which" command included in the "which" package was used instead of the built-in "which" command as included in the C shell (csh). The problem has been fixed in this update by removing the /etc/profile.d/which2.csh file so that the "which" command included in csh is now used as expected.
Clone Of:
Environment:
Last Closed: 2011-06-29 07:42:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0911 0 normal SHIPPED_LIVE which bug fix update 2011-06-29 07:42:40 UTC

Description Masahiro Matsuya 2011-01-21 01:10:37 UTC
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:

Comment 2 RHEL Program Management 2011-01-21 01:28:06 UTC
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.

Comment 5 Suzanne Logcher 2011-02-15 21:46:45 UTC
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.

Comment 6 Angelo Bonet 2011-03-29 21:53:57 UTC
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.

Comment 15 errata-xmlrpc 2011-06-29 07:42:45 UTC
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


Note You need to log in before you can comment on or make changes to this bug.