Bug 10250
Summary: | RHL 6.1 "which" command and man page are dangerously erroneous. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | swear |
Component: | which | Assignee: | Preston Brown <pbrown> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-05-14 20:48:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
swear
2000-03-19 20:14:23 UTC
The nuance of difference between "if" and "when" is carefully noted, but hardly seems to be a crucial point. Reading further in the man page shows how to use alias which='alias | which --tty-only --read-alias --show-tilde --show-dot' in order to detect (at least) aliased commands, and a little thought should provide a mechanism for detecting builtins as well, if that's your pleasure. Meanwhile, the existing which(1) is superior to the traditional implementation of which in a csh script, and the behavior is dictated more by conformance with tradition than logic. |