DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

getoptcvt(1)


getoptcvt -- parse command options

Synopsis

/usr/lib/getoptcvt [-b] file

Description

The /usr/lib/getoptcvt( ) command reads the shell script in file, converts it to use getopts(1) instead of getopt(1), and writes the results on the standard output.

-b
Make the converted script portable to earlier releases of the UNIX system; that is, /usr/lib/getoptcvt( ) modifies the shell script in file so that when the resulting shell script is executed, it determines at run time whether to invoke getopts(1) or getopt(3C).

So all new commands will adhere to the command syntax standard described in intro(1), they should use getopts(1) or getopt(3C) to parse positional parameters and check for options that are valid for that command.

References

getopt(1), getopts(1), getopt(3C), intro(1)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004