Re: [Groff] Parsing specific section of man page

2012-01-22 Thread ridiculous_fish
Hello! I'm working with Siteshwar on these shell enhancements. At the cost of straying off-topic, I hope I can clarify our intent, and convince you that this is a worthwhile effort. Ingo Schwarze wrote on Sun, 22 Jan 2012 16:57:29 +0100: > Do not bloat the shell. This is key to our philosophy.

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ralph Corderoy
Hi, Ingo Schwarze wrote: > There is no need to choose stupid projects for learning; actually, you > not only *produce* less, you also *learn* less in a project that is > bound for failure right from the start. It may be learning less but reaching a dead end and looking back and learning from it,

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ingo Schwarze
Hi, Ralph Corderoy wrote on Sun, Jan 22, 2012 at 05:16:01PM +: > Clarke Echols wrote: >> I agree with Ingo. Unix man pages are supposed to have a well-defined >> sequence and format. > (Many, the majority?, don't comply on common Linux systems, > unfortunately.) Right, which is exactly why

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ted Harding
On 22-Jan-2012 Ralph Corderoy wrote: > Hi, > Ingo Schwarze wrote: >> This is a misguided, terrible idea in so many ways. > > Clarke Echols wrote: >> I agree with Ingo. Unix man pages are supposed to have a >> well-defined sequence and format. > > (Many, the majority?, don't comply on common Linu

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ralph Corderoy
Hi, Ingo Schwarze wrote: > This is a misguided, terrible idea in so many ways. Clarke Echols wrote: > I agree with Ingo. Unix man pages are supposed to have a well-defined > sequence and format. (Many, the majority?, don't comply on common Linux systems, unfortunately.) Neither of you are allo

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Clarke Echols
On 01/22/2012 08:57 AM, Ingo Schwarze wrote: Hi, Siteshwar Vashisht wrote on Sun, Jan 22, 2012 at 07:29:23PM +0530: I am working on a shell, and the idea is to show suggestions for command line options on pressing tab. So let's say on pressing "ls", I will get all the command line options for

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ingo Schwarze
Hi, Siteshwar Vashisht wrote on Sun, Jan 22, 2012 at 07:29:23PM +0530: > I am working on a shell, and the idea is to show suggestions for > command line options on pressing tab. So let's say on pressing > "ls", I will get all the command line options for ls > command. Now a good idea is to fetch

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Siteshwar Vashisht
Hi, No, I am in no way interested in X. I am working on a shell, and the idea is to show suggestions for command line options on pressing tab. So let's say on pressing "ls", I will get all the command line options for ls command. Now a good idea is to fetch these options from manual pages. @Larry

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ralph Corderoy
Hi Siteshwar, > No, I am in no way interested in X. I am working on a shell, and the > idea is to show suggestions for command line options on pressing tab. > So let's say on pressing "ls", I will get all the command line > options for ls command. Now a good idea is to fetch these options from > m

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Larry Kollar
On Jan 22, 2012, at 12:36 AM, Siteshwar Vashisht wrote: > Is there any option in groff to parse only a specifiec section of man page > ? For e.g. when I say > > groff -X -P -resolution -P100 -man passwd > > It parses and shows me the whole page. What if I want to parse only OPTIONS > section ?

[Groff] XBD == "X/Open Base Definitions"

2012-01-22 Thread Ingo Schwarze
Hi, Philip Guenther pointed out to me that the acronym "XBD" stands for "X/Open Base Definitions", not "X/Open System Interface Definitions", see for example: http://pubs.opengroup.org/onlinepubs/007908799/ Hence, i propose the following patch to mdoc(7). If you agree with this, i will update

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ralph Corderoy
Hi Siteshwar, > What if I want to parse only OPTIONS section ? I am looking for > something like :- > > groff -X -P -resolution -P100 -man -parse-section "OPTIONS" passwd Can you tell us why you want to do this? Is it only -X output you're interested in, for example. Cheers, Ralph.

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ted Harding
Follow-up to my previous reply: On 22-Jan-2012 Ted Harding wrote: > On 22-Jan-2012 Siteshwar Vashisht wrote: >> Hi, >> Is there any option in groff to parse only a specifiec >> section of man page? For e.g. when I say >> >> groff -X -P -resolution -P100 -man passwd >> >> It parses and shows me t

Re: [Groff] Parsing specific section of man page

2012-01-22 Thread Ted Harding
On 22-Jan-2012 Siteshwar Vashisht wrote: > Hi, > Is there any option in groff to parse only a specifiec > section of man page? For e.g. when I say > > groff -X -P -resolution -P100 -man passwd > > It parses and shows me the whole page. What if I want to > parse only OPTIONS section ? I am looking