Monday, February 3, 2025

terminal – MANPATH, ‘whereis’ and the way manuals are situated?

I take advantage of a 2023 M2 MBP operating Ventura 13.7.2. To enhance Apple’s relatively paltry choices of CL utilities, I rely upon MacPorts. Sadly, MacPorts doesn’t have a alternative/various for whereis.

Should you’ve ever used Apple’s native whereis you’ll have seen that it has some shortcomings; e.g.:

/usr/bin/whereis discover discover: /usr/bin/discover /decide/native/libexec/gnubin/man/man1/discover.1.gz 

First – it solely experiences on native apps. Its app searches are restricted by Apple, and apparently this can’t be over-ridden by any consumer.

Second – as you possibly can see above, it has no such restrictions on looking for manuals. On this case, it experiences on the handbook location for the discover software which was put in from MacPorts.

Third – the native whereis discovered the manpage for discover with out advantage of the MANPATH setting variable – it’s not set on my system.

Fourth – AFAIK, that leaves solely manpath (one other Apple-sourced CL utility) as a useful resource for locating the situation of manuals. Nevertheless, as I learn man manpath – it is not getting it from there both!

In order that’s my query: How does Apple’s whereis command discover the situation of system manuals? Have I mis-read man manpath? Can somebody clarify the method?

Additionally, I might have an interest to know if Apple publishes the supply recordsdata for manpath and whereis, and in that case – the place can I discover them?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles