Date: Tue, 22 Oct 1996 17:41:54 +0100 From: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> To: freebsd-hackers@freefall.FreeBSD.org Subject: getopt(1) man page woodoo Message-ID: <199610221641.RAA22495@gilberto.physik.rwth-aachen.de>
next in thread | raw e-mail | index | archive | help
..... DESCRIPTION Getopt is used to break up options in command lines for easy parsing by shell procedures, and to check for legal options. [Optstring] is a string of recognized option letters (see getopt(3) ); if a letter is fol- lowed by a colon, the option is expected to have an argument which may or may not be separated from it by white space. The special option is used to delimit the end of the options. Getopt will place in the arguments at the end of the options, or recognize it if used explicitly. The shell arguments ($1 $2 ...) are reset so that each option is preceded by a and in its own shell argument; each option argument is also in its own shell argument. ..... See the missing -- and - ? But they are in The special option .B \-\- is used to delimit the end of the options. .Nm Getopt will place .B \-\- in the arguments at the end of the options, or recognize it if used explicitly. The shell arguments (\fB$1 $2\fR ...) are reset so that each option is preceded by a .B \- and in its own shell argument; What's going on here? --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610221641.RAA22495>