Summary: | which fails to handle -a or -s as documented in manpage | ||
---|---|---|---|
Product: | Base System | Reporter: | Bjoern A. Zeeb <bz> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Not A Bug | ||
Severity: | Affects Only Me | CC: | 0mp, bz |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Bjoern A. Zeeb
2018-05-28 15:37:47 UTC
(In reply to Bjoern A. Zeeb from comment #0) It is not which(1) that is not working as specified in the manual. It looks like your are using tcsh/csh, which seems to not implement those "-a" and "-s" flags. Here's a fragment of the tcsh(1) manual: > which command (+) > Displays the command that will be executed by the shell after > substitutions, path searching, etc. The builtin command is > just like which(1), but it correctly reports tcsh aliases and > builtins and is 10 to 100 times faster. See also the which- > command editor command. It looks like everything works as intended. Try running which(1) like this: % /usr/bin/which -a true Argh. Thanks. That's what happens if you don't even read the error messages your are pasting and not have your normal environment. PEBKAC |