[ksh93-integration-discuss] Re: [ast-users] getopts function and manual page output
Glenn Fowler
gsf at research.att.com
Mon Nov 13 08:34:30 PST 2006
any ast command or script using getopts with self-documenting usage
can output its own usage string
try this from withing ksh:
getopts '--??usage' 2>&1 | fmt -o
where fmt is the ast fmt and -o formats optget(3) usage strings
On Mon, 13 Nov 2006 16:53:35 +0100 Josh Hurst wrote:
> How can I get the getopts function in ksh93 to output a full manual
> page, including the long options?
getopts "$USAGE" OPT --man
> does anyone have an example script
> which uses getopts with long options like '--test' as alias for '-t'
> and prints a full manual page for '--man'?
if you have installed the ast-open package look at any of the scripts named by:
tw -d $INSTALLROOT/bin -e "mime=='*/*sh'"
-- Glenn Fowler -- AT&T Research, Florham Park NJ --
More information about the ksh93-integration-discuss
mailing list