Created attachment 993306 [details] Adjust /etc/profile.d/which2.sh as manpage recommends Description of problem: The which alias declared in /etc/profile.d/which2.sh fails to find bash functions which would be used to resolve a particular command. So for example, if a function for ls is declared, "which ls" shows /bin/ls when in fact the function named "ls" is actually used. This is a continuation of bug 819602 (which was closed as EOL) Version-Release number of selected component (if applicable): 2.20-8 How reproducible: Always Steps to Reproduce: 1. Declare a bash function mytest, eg "mytest() { echo "hello"; }" 2. Type "mytest" at prompt, which executes function (results in "hello") 3. Type "which mytest" Actual results: /usr/bin/which: no mytest in ($PATH) Expected results: mytest () { echo "hello" } Additional info: The attached patch to fix the problem is described in the which manpage, and is therefore a preferred and supported way to have which work with bash functions.
*** Bug 819602 has been marked as a duplicate of this bug. ***
@Ngo Than: It is now 2.5 years without any answer from you, I will now update which for you Also please respond, since I now also start the nonresponsive maintainer policy: http://fedoraproject.org/wiki/Policy_for_nonresponsive_package_maintainers
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Bug appears fixed in which-2.20-9 (yay!...only F22 onwards though) Tested and works perfectly. Moving to F22 and closing.