Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| posix_shell_getpots [2019/09/25 18:03] – created rpjday | posix_shell_getpots [2019/09/30 12:16] (current) – [Starting points] rpjday | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| An attempt at summarizing the //right// way to use POSIX-compliant '' | An attempt at summarizing the //right// way to use POSIX-compliant '' | ||
| + | |||
| + | A couple links: | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Starting points ===== | ||
| + | |||
| + | First, there has been much blood spilled discussing how to support // | ||
| + | |||
| + | And, second, if the // | ||
| + | |||
| + | < | ||
| + | while getopts ab:c: opt ; do | ||
| + | </ | ||
| + | |||
| + | Do this (note the leading colon): | ||
| + | |||
| + | < | ||
| + | while getopts :ab:c: opt ; do | ||
| + | </ | ||
| + | |||
| + | Explanation below. | ||
| + | |||
| + | ===== Fleshed out example ===== | ||
| + | |||
| + | < | ||
| + | ... coming soon ... | ||
| + | </ | ||