then you're not going to like this

        ksh --???ESC --man 2>&1 | less -r

stderr is a byproduct of the api that produces the output
basically getopt(3) on steroids

btw, --??? lists the options available to all commands
--???ESC is documented there

On Thu, 16 Oct 2008 20:28:53 -0400 Norman Ramsey wrote:
>  > 
>  > if you use the command line --man and --html options then
>  > its already split w.r.t. option and operand documentation
>  >    ksh --man
>  >    wait --man
>  >    continue --man

> I tried these again and was reminded of why I don't use them: they
> write to standard error, not standard output.  And while man(1)
> does something magical so that the pager works with bold and
> underlined characters,

>   ksh --man 2>&1 | less

> does something unpredictable depending on platform.  Sometimes I get
> plain ASCII with no bold or underline.  Other times I get an
> unreadable mess of what appear to be vt100 escape codes.  I like
> having man(1) take care of these things for me.  It is bad enough to
> have to add '| less' to

>   mumble -man

> I am way am too old and stubborn to type 2>&1 as well.

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to