Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. Aaron Toponce Aaron Toponce GNU's Not Unix , Linux

    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.
    • Alexandre Oliva Alexandre Oliva

      @eightyeight may GNU info, assuming it won't just invoke the man behind the curtain :-)

      about 9 months ago
    • ralesk ralesk

      @eightyeight I know that konqueror does man and info, but I recall you don't like KDE stuff.

      about 9 months ago
    • ralesk ralesk ralesk

      @ralesk I don't know any terminal-based alternatives though to either man or info.

      about 9 months ago
    • Aaron Toponce Aaron Toponce Alexandre Oliva

      @lxoliva problem is, i have manpages installed, but no man(1) and no info(1), without the ability to install either

      about 9 months ago
    • ralesk ralesk Alexandre Oliva

      @lxoliva Ugh. GNU info(1) is the single most annoying thing I've ever had to read documentation with. *cringe*

      about 9 months ago
    • Aaron Toponce Aaron Toponce ralesk

      @ralesk ah yes, however i'm not in a gui environment

      about 9 months ago
    • ralesk ralesk

      @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?

      about 9 months ago
    • Aaron Toponce Aaron Toponce ralesk

      @ralesk yeah, that's what i'm thinking. that's why i'm asking, hoping someone knows the solution

      about 9 months ago
    • ralesk ralesk ralesk

      @ralesk groff-utf8 -P-c -Tutf8 -mandoc hg.1 | less # I cheated and looked into how our mc.ext does it.

      about 9 months ago
    • Will Gardella Will Gardella Linux

      @eightyeight not a *good* solution, but "gunzip -c /usr/share/man/man1/man.1.gz | troff -" will work !linux !gnu

      about 9 months ago
      dno likes this.
    • Alexandre Oliva Alexandre Oliva

      @eightyeight found this in my ancient Solaris2.2 bashrc; untested for 10+y: lman () { nroff -Tman -man $1.[1-8nl]* | less; }

      about 9 months ago
    • ralesk ralesk

      @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

      about 9 months ago
    • Aaron Toponce Aaron Toponce ralesk

      @ralesk or "zcat /usr/share/man/man1/man.1.gz | troff"

      about 9 months ago
    • Tekk Has Moved Tekk Has Moved Alexandre Oliva

      @lxoliva probably helpful to add loops for testing(if not in /usr/man, check /usr/local/man, etc.)

      about 9 months ago
    • Aaron Toponce Aaron Toponce Alexandre Oliva

      @lxoliva can you explain the syntax?

      about 9 months ago
    • Tekk Has Moved Tekk Has Moved Alexandre Oliva

      @lxoliva or do the nroff flags do that for you?

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva emacs , ralesk

      @ralesk yeah, reading docs within !emacs is much better, but I prefer info manuals to man pages, and GNU info as front-end to man

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva

      @eightyeight cd into the directory containing the mymanual.# and run “lman mymanual”

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva Tekk Has Moved

      @tekk -EDONTREMEMBER 10+ years is a long time ;-) prolly more like 15+, even

      about 9 months ago
    • Aaron Toponce Aaron Toponce Alexandre Oliva

      @lxoliva what i'm not getting, and failing in the shell, is "$1.[1-8nl]*"

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva Tekk Has Moved

      @tekk I used it to read uninstalled (l is for local) man-pages, so it won't search MANPATH

      about 9 months ago
    • ralesk ralesk

      @eightyeight Peculiar, neither troff nor plain groff work for me that way, while nroff gives a moderately decent output. Didn't play w/ args

      about 9 months ago
    • Aaron Toponce Aaron Toponce Will Gardella

      @wgreenhouse yeah, not a great solution. zcat(1) also works fine instead of gunzip(1) in that example

      about 9 months ago
    • Tekk Has Moved Tekk Has Moved Alexandre Oliva

      @lxoliva ah

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva ralesk

      @ralesk and then, if it was about beauty, the program should not have been named “man”, but “woman” :-D

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva

      @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

      about 9 months ago
    • Aaron Toponce Aaron Toponce Alexandre Oliva

      @lxoliva is it tested, because it's erroring out for me

      about 9 months ago
    • Alexandre Oliva Alexandre Oliva

      @eightyeight it was tested almost 20 years ago on Solaris2.2. never used it on GNU, may need some adjusting for .gz etc

      about 9 months ago
    • Jeff Gehlbach Jeff Gehlbach

      @eightyeight nroff -man foo.1 should do it.

      about 9 months ago
    • Aaron Toponce Aaron Toponce Jeff Gehlbach

      @jeffg perfect! "zcat /usr/share/man/man1/man.1.gz | nroff -man | less". beautiful

      about 9 months ago

Site notice

  • API
  • Status

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-alpha1, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal