|
|
Reading man pages in the current directory
Sorry but this won't find most of my man pages. If I "unsetenv MANPATH" then run manpath I lose most of finks manpages and all of X11's manpages. I'll continue to keep MANPATH set.
Reading man pages in the current directory
The problem with relying on site-wide manpath's is that it is tailored to the system, not the user. A real everyday example would be software I write. I install the software in my home directory ($HOME/bin, $HOME/man, $HOME/etc, ...). I don't want everyone else on the system reading my manpages. In fact, I keep my home directory permissions set at 700. Does my software belong in /usr/local? Not if it's a utility that only I would use (software only a mother could love, trust me!). Not if it's still buggy. Not if I don't want others using it. Solution? A custom MANPATH (the standard UNIX way).
Really, I'm not trying to say the original suggestion of writing a script is wrong. In fact, it's a nice script - short and simple. The point I'm trying to make is that provisions were put in place to deal with non-sitewide man pages 20 years ago in UNIX. The script re-invents the wheel - and the old wheel is still better. --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|