Conversation
Notices
-
anyone know of a good solution for reading manpages without man(1)? something with cat(1) and troff(1) perhaps? !gnu !linux
about 9 months ago from xmpp- Alexander Javier Salas Bastidas likes this.
-
@eightyeight may GNU info, assuming it won't just invoke the man behind the curtain :-)
-
@eightyeight I know that konqueror does man and info, but I recall you don't like KDE stuff.
-
@ralesk I don't know any terminal-based alternatives though to either man or info.
-
@lxoliva problem is, i have manpages installed, but no man(1) and no info(1), without the ability to install either
-
@lxoliva Ugh. GNU info(1) is the single most annoying thing I've ever had to read documentation with. *cringe*
-
@ralesk ah yes, however i'm not in a gui environment
-
@eightyeight I guess ?roff to the rescue — I haven't really had to invoke any of them directly, but that's all what man does anyway, dunnit?
-
@ralesk yeah, that's what i'm thinking. that's why i'm asking, hoping someone knows the solution
-
@ralesk groff-utf8 -P-c -Tutf8 -mandoc hg.1 | less # I cheated and looked into how our mc.ext does it.
-
@eightyeight not a *good* solution, but "gunzip -c /usr/share/man/man1/man.1.gz | troff -" will work !linux !gnu
dno likes this. -
@eightyeight found this in my ancient Solaris2.2 bashrc; untested for 10+y: lman () { nroff -Tman -man $1.[1-8nl]* | less; }
-
@eightyeight Hopefully that previous one works. Not exactly sure where the groff-utf8 comes from in UHU, but anyway, I'm sure you'll fig out
-
@ralesk or "zcat /usr/share/man/man1/man.1.gz | troff"
-
@lxoliva probably helpful to add loops for testing(if not in /usr/man, check /usr/local/man, etc.)
-
@lxoliva can you explain the syntax?
-
@lxoliva or do the nroff flags do that for you?
-
@eightyeight cd into the directory containing the mymanual.# and run “lman mymanual”
-
@tekk -EDONTREMEMBER 10+ years is a long time ;-) prolly more like 15+, even
-
@lxoliva what i'm not getting, and failing in the shell, is "$1.[1-8nl]*"
-
@tekk I used it to read uninstalled (l is for local) man-pages, so it won't search MANPATH
-
@eightyeight Peculiar, neither troff nor plain groff work for me that way, while nroff gives a moderately decent output. Didn't play w/ args
-
@wgreenhouse yeah, not a great solution. zcat(1) also works fine instead of gunzip(1) in that example
-
@lxoliva ah
-
@ralesk and then, if it was about beauty, the program should not have been named “man”, but “woman” :-D
-
@eightyeight remember the bit about cd'ing to the dir? run lman foo, and it will look for foo.1 or somesuch to feed to nroff
-
@lxoliva is it tested, because it's erroring out for me
-
@eightyeight it was tested almost 20 years ago on Solaris2.2. never used it on GNU, may need some adjusting for .gz etc
-
@eightyeight nroff -man foo.1 should do it.
-
@jeffg perfect! "zcat /usr/share/man/man1/man.1.gz | nroff -man | less". beautiful