Bug 263901

Summary: which(1) flags ignored
Product: Base System Reporter: pprocacci
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: emaste, rb
Priority: ---    
Version: 13.0-RELEASE   
Hardware: Any   
OS: Any   

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.