Getopt: Difference between revisions
Created page with "==Shell== <tt>getopt(1)</tt> diverges between Linux and FreeBSD. POSIX's <tt>getopts(1)</tt> is the portable way to do option parsing from the shell. ==C==" |
|||
| Line 1: | Line 1: | ||
==[[Shell]]== | ==[[Shell]]== | ||
<tt>getopt(1)</tt> diverges between Linux and FreeBSD. [[POSIX|POSIX's]] <tt>getopts(1)</tt> is the portable way to do option parsing from the shell. | <tt>getopt(1)</tt> diverges between Linux and FreeBSD. [[POSIX|POSIX's]] <tt>getopts(1)</tt> is the portable way to do option parsing from the shell (as pointed out in [http://mywiki.wooledge.org/BashFAQ/035 BASH FAQ #035]). | ||
==[[C]]== | ==[[C]]== | ||