Check out my first novel, midnight's simulacra!
Getopt: Difference between revisions
From dankwiki
(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==") |
(→Shell) |
||
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]]== |
Latest revision as of 02:53, 29 May 2012
Shell
getopt(1) diverges between Linux and FreeBSD. POSIX's getopts(1) is the portable way to do option parsing from the shell (as pointed out in BASH FAQ #035).