On Tue, Jul 31, 2012 at 11:02 PM, Glenn Fowler <g...@research.att.com> wrote:
>
> On Tue, 31 Jul 2012 22:53:06 +0200 Roland Mainz wrote:
>> On Fri, Jul 27, 2012 at 7:13 AM, Roland Mainz <roland.ma...@nrubsig.org> 
>> wrote:
>> > - EXAMPLES section in manpage... but I hit an issue with ']' ...
>> > mhhh... AFAIK we had a similar request in the list this month: How do
>> > I quote ']' that |_ast_getopts()| interprets it as plain text ?
>
>> Glenn: ping!
>
>> How can I escape ']', '[', '}' and '{' in _ast_optget strings that
>> they appear as normal text and are not intrepreted by the _ast_optget
>> machinery (IMO that's an item for the manpage) ?
>
> from getopts --man:
>
>         The ?  character must be specified as ?? in the label and the ]
>         character must be specified as ]] in the description string.

Groan... RTFM... ;-(
Sorry... and thanks... :-)

> except for the command line prototype line, all other text to be rendered
> must be inside [...], so { and } don't need escaping (unless you have a
> counter-example -- then its either an implementtaion or documentation bug)

Ok...

> to see ? and ] quoting in action look at
>
>         getopts --usage 2>&1 | fmt -o | less
>
> (ast getopts and fmt of course)

Thanks for that tip (still looking at DocBook conversion) ...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.ma...@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to