Bug 263901 - which(1) flags ignored
Summary: which(1) flags ignored
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-10 19:37 UTC by pprocacci
Modified: 2022-05-12 15:02 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pprocacci 2022-05-10 19:37:51 UTC
which(1) is not interpreting it's options at all.

# which -a -s ls
-a: Command not found.
-s: Command not found.
/bin/ls
Comment 1 Bob Bishop 2022-05-10 19:52:57 UTC
which is a shell builtin so its behaviour will depend on your shell, see builtin(1). 
which(1) describes /usr/bin/which
Comment 2 pprocacci 2022-05-10 20:13:03 UTC
You are correct, and I'm an imbecile for not noticing this.
Close this.

Thanks.
Comment 3 pprocacci 2022-05-10 20:13:13 UTC
You are correct, and I'm an imbecile for not noticing this.
Close this.

Thanks.